Avatar of nsitedesigns
nsitedesignsFlag for United States of America

asked on 

logo lined up with navigation

What the heck am I doing wrong?  I would like the logo to line up with the navigation so that the navigation (Services through Home) line up with the middle of the logo.  When I play with just the logo and nav I can get it to work.  See link

http://nsitedesigns.com/nsitedesigns/miller/3.html

When I put the rest of the site in place the nav dips down below logo:
http://nsitedesigns.com/nsitedesigns/miller/test2.html
CSSHTMLWeb Development

Avatar of undefined
Last Comment
nsitedesigns
Avatar of jonahzona
jonahzona
Flag of United States of America image

Try changing this CSS to this:

ul#main-nav {
    float: left;
    margin-top: 36px;
}

Open in new window


Is that what you are looking for?
Avatar of TonyReba
TonyReba
Flag of United States of America image

can you post the Css code you are using in your code , ?
Avatar of TonyReba
TonyReba
Flag of United States of America image

I suspect you are using percentages on you css instead of pixels
Avatar of TonyReba
TonyReba
Flag of United States of America image

Looking it a second time seems that youset you menu relative to the IMG div
Avatar of nsitedesigns
nsitedesigns
Flag of United States of America image

ASKER

jonahzona,
Changing the margin on the logo will not effect the navigation.  No matter what I change it to, the navigation remains in the same position.  
Avatar of jonahzona
jonahzona
Flag of United States of America image

Alright, do you want to move the navigation up or down?

the code I pasted will move the nav#ul down an additional 6px.

Is this what you are looking to do? To move the navigation down while keeping the logo in the same place?
Avatar of nsitedesigns
nsitedesigns
Flag of United States of America image

ASKER

Here is a screen shot showing (in red) where navigation is and (in blue) where I want navigation to be.
http://screencast.com/t/6Uz3YIKhnRs

Navigation needs to be fixed
http://nsitedesigns.com/nsitedesigns/miller/test2.html
http://nsitedesigns.com/nsitedesigns/miller/miller_new.css

Navigation in correct position
http://nsitedesigns.com/nsitedesigns/miller/3.html
http://nsitedesigns.com/nsitedesigns/miller/3.css
Avatar of Tom Beck
Tom Beck
Flag of United States of America image

The menu is too wide to fit there. For example if you add width:100px; to the li it goes where you want it abiet with squeezed menu titles.
Avatar of nsitedesigns
nsitedesigns
Flag of United States of America image

ASKER

jonahazona,

I put in your modification.  What that did was push the navigation DOWN but I need the navigation to sit to the RIGHT of the logo.  
Avatar of TonyReba
TonyReba
Flag of United States of America image

The site looks fine on Chrome...
Avatar of TonyReba
TonyReba
Flag of United States of America image

I say you need to create a new div below your dvi topper
Avatar of nsitedesigns
nsitedesigns
Flag of United States of America image

ASKER

tommyBoy,

the menu is where i want it to be in http://nsitedesigns.com/nsitedesigns/miller/3.html.  I copied and pasted the navigation css into http://nsitedesigns.com/nsitedesigns/miller/test2.html.

Why would you say the navigation is too wide when it worked in one situation but not in the other.  The navigation coding is the same.
Avatar of nsitedesigns
nsitedesigns
Flag of United States of America image

ASKER

TonyReba,

Can you provide the specs for the div you want me to add below topper.  
Avatar of jonahzona
jonahzona
Flag of United States of America image

Got it. This is an IE problem.

Looks good in FF. That is why I was missing the point.......
Avatar of nsitedesigns
nsitedesigns
Flag of United States of America image

ASKER

Tony Reba,

The below url fails on Mac's Safari and FF, on a PC in Opera, IE and FF.

http://nsitedesigns.com/nsitedesigns/miller/test2.html.
Avatar of nsitedesigns
nsitedesigns
Flag of United States of America image

ASKER

by fails, i mean it doesn't sit to the right of the logo.  
Avatar of nsitedesigns
nsitedesigns
Flag of United States of America image

ASKER

it does not work in any browser on mac or pc
http://nsitedesigns.com/nsitedesigns/miller/test2.html.
Avatar of jonahzona
jonahzona
Flag of United States of America image

Try adding this

ul#main-nav {
    float: left;
    margin-top: 36px;
    padding: 0;
}

Open in new window


worked for me.
ASKER CERTIFIED SOLUTION
Avatar of jonahzona
jonahzona
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of jonahzona
jonahzona
Flag of United States of America image

Also, that margin-top can be changed back to 30. I think that is what you originally had.

ul#main-nav {
    float: left;
    margin-top: 30px;
    padding: 0;
}
Avatar of nsitedesigns
nsitedesigns
Flag of United States of America image

ASKER

Thanks!  I knew it was something simple but was missing.
Web Development
Web Development

Web development includes all aspects of presenting content on intranets and the Internet, including delivery development, protocols, languages and standards, server software, browser clients, databases and multimedia generation.

77K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo