Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Help with my header and navigation in Responsive layout

Featured Replies

Hello I was wondering if anyone could possibly help me. I'm creating this site

 

http://testingsite.aimee-tacchi.co.uk/ (This is the test url)

 

As you can see I would like the text and social media icons above my navigation to fit in there, how do I get that to work?

But also when it goes responsive I would like it to be inline with the logo? with the drop down navigation below the logo and call us and social media buttons.

 

I'm not sure how to code it though? could anyone help that be great.

Thank you

Darkxangel84

Hello,

 

Try this:

<nav>
  <p> Call Us :01507 354336 - <img src="images/twitter-icon.png" alt="twitter" width="25" height="25" style="width: 25px;"> - Buy Tickets </p>
 <ul class="hiding">
  <li><a href="index.html" class="current">Home</a></li>
  <li><a href="#">About</a></li>
  <li><a href="#">What's on</a></li>
  <li><a href="#">Weddings</a></li>
  <li><a href="#">Venue Hire</a></li>
 </ul> 
</nav>

The paragraph was in the wrong order; however, the twitter icon is too large and pushes down the navigation, I added inline styling that you'll want to turn into a class to make it 25px; also, remove margin-top:-50px from header nav css.

  • Author

Hello,

 

Try this:

<nav>
  <p> Call Us :01507 354336 - <img src="images/twitter-icon.png" alt="twitter" width="25" height="25" style="width: 25px;"> - Buy Tickets </p>
 <ul class="hiding">
  <li><a href="index.html" class="current">Home</a></li>
  <li><a href="#">About</a></li>
  <li><a href="#">What's on</a></li>
  <li><a href="#">Weddings</a></li>
  <li><a href="#">Venue Hire</a></li>
 </ul> 
</nav>

The paragraph was in the wrong order; however, the twitter icon is too large and pushes down the navigation, I added inline styling that you'll want to turn into a class to make it 25px; also, remove margin-top:-50px from header nav css.

Hi Eddie.

 

Oh right, Thank you!!! I did remove the margin-top: 50px, and changed it to margin-top: 100px; as when I removed it, it seem to loose the text... Erm how do I get about sorting it out in the responsive mode, so it sits nicely next to the Logo??? thank you

please see website again!

Hello,

 

Try this;

header nav {
    float: right;
    margin-top: 100px;
    max-width: 60%;
}

and;

header img {
    float: left;
    max-width: 40%;
}

This sets the elements sizes maximum width so as they don't overflow.

 

I strongly recommend some media queries for lower resolution devices (mobile phones, et cetera) to adjust font sizes, and also to remove the margin for the navigation once the page is loaded on smaller devices.

/* Standard Phones */ 
@media only screen and (max-width : 480px) {
	.customstyles {
		styles:here;
	}
}

/* iPhone Retina */ 
@media only screen and (max-width : 320px) {
	.customstyles {
		styles:here;
	} 
}

Hope I've been of some help.

  • 3 weeks later...
  • Author

Hello,

 

Try this;

header nav {
    float: right;
    margin-top: 100px;
    max-width: 60%;
}

and;

header img {
    float: left;
    max-width: 40%;
}

This sets the elements sizes maximum width so as they don't overflow.

 

I strongly recommend some media queries for lower resolution devices (mobile phones, et cetera) to adjust font sizes, and also to remove the margin for the navigation once the page is loaded on smaller devices.

/* Standard Phones */ 
@media only screen and (max-width : 480px) {
	.customstyles {
		styles:here;
	}
}

/* iPhone Retina */ 
@media only screen and (max-width : 320px) {
	.customstyles {
		styles:here;
	} 
}

Hope I've been of some help.

Ok Thank you Eddie. What do you think of the design? is it ok?

Ok Thank you Eddie. What do you think of the design? is it ok?

 

It has a lot of potential. I like less boxed in looking sites like that, if I were to add any recommendations or criticisms they would be changing the image formats to jpg for size reduction, and maybe even compression, they are taking a long time to load. The images aren't fitting properly in their containers for me either, symmetry is important to some (like me) - screenshot link. Also, maybe try playing with the colours of the content areas, a tool like this can be your best friend in choosing colours.

 

Apart from being picky on things, like formatting, a few pixels out here and there and loading times. It's coming along nicely. Very much looking forward to seeing a final result.

 

Check out Robert Smith's profile, he's a member here. He's created a grid system that I haven't had a chance to have an in-depth play with yet, but it looks great, would probably be really handy for your design. You can see it in action here.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.