- This topic has 10 replies, 2 voices, and was last updated 10 years, 6 months ago by
Tom.
-
AuthorPosts
-
September 27, 2015 at 5:02 am #140037
Andreas
Hi Tom,
I used a hook after the header content to show a text next to the logo. It works fine but I have a problem to make the text responsive.
<div class="tagline"> <h3><i class="fa fa-phone"></i> **</h3> <em>**"</em> </div>That’s what I’ve tried
.tagline { float: right; padding-top: 10px; width: 500px; position: relative; vertical-align: middle; }Thanks in advance!
September 27, 2015 at 5:04 am #140038Andreas
Could you please delete the text and the phone number on your webside!
September 27, 2015 at 12:32 pm #140132Tom
Lead DeveloperLead DeveloperTry adding this CSS:
@media (max-width:768px) { .tagline { width: 100%; float: none; text-align: center; } }September 27, 2015 at 1:16 pm #140140Andreas
That works fine! Thanks a lot…
September 27, 2015 at 1:17 pm #140142Tom
Lead DeveloperLead DeveloperYou’re welcome 🙂
September 27, 2015 at 3:28 pm #140182Andreas
Hi Tom,
Unfortunately, I have another problem with the header text. When I get back to the site from the print preview the whole container is moved down. Do you have any idea why this is and how I can fix it?
My current code looks like this
.tagline { float: right; padding-top: 10px; width: 500px; overflow: hidden; } @media (max-width:768px) { .tagline { width: 100%; float: none; text-align: center; margin-top: 10px !important; } } @media (min-width: 769px) and (max-width: 1024px) { .tagline { float: right; padding-top: 10px; width: 370px; overflow: hidden; } }September 27, 2015 at 11:57 pm #140276Tom
Lead DeveloperLead DeveloperThat sounds super weird – not sure why closing the print preview would modify any existing CSS.
Can you link me to the page?
September 28, 2015 at 1:46 am #140305Andreas
Hi Tom,
not only the print preview would modify the css. I have the same problem when I minimize the browser window to a smaller view and then maximize it again.
September 28, 2015 at 10:14 am #140360Tom
Lead DeveloperLead DeveloperTry changing
.taglinetofloat: leftand instead of right.Then add this as well:
@media (min-width: 769px) { .site-logo { float: left; } }September 28, 2015 at 2:34 pm #140487Andreas
That works fine! Thanks a lot…!
September 28, 2015 at 2:38 pm #140488Tom
Lead DeveloperLead DeveloperNo worries:) Glad I could help
-
AuthorPosts
- You must be logged in to reply to this topic.