Welcome Guest!

If you do not have an account yet on The Web Squeeze forums, please Register! It’s FREE and there are many benefits:

  • Receive Fast Advice
  • Learn Programming Languages
  • Get Professional Website Reviews
  • Quick Troubleshooting Assistance

> Css Navigation - Misaligned In Ie7

This is a discussion on Css Navigation - Misaligned In Ie7, within the CSS section. This forum and the thread "Css Navigation - Misaligned In Ie7" are both part of the Designing Your Website category.

 
Reply to this topicStart new topic
> Css Navigation - Misaligned In Ie7
902
post Feb 18 2008, 08:21 PM
Post #1


Squeezing
***

Posts: 65
Joined: 14-February 08


Hey all,

I can figure out why IE is misaligning my navigation.

Proposed Vacation Site

I assume it's elements of the layout in the css I'm using as the nav css works great on other sites I've made.

The layout css is one from a course I'm taking, hence the many notes in it.

Any advice?

Thanks
Go to the top of the page
 
+Quote Post
Mark
post Feb 18 2008, 08:40 PM
Post #2


Don deluzione
Group Icon

Posts: 1,175
Joined: 13-February 08
From: Canada eh?


try this:
http://www.quirksmode.org/css/condcom.html


--------------------
Go to the top of the page
 
+Quote Post
902
post Feb 19 2008, 10:10 AM
Post #3


Squeezing
***

Posts: 65
Joined: 14-February 08


QUOTE (delusion @ Feb 18 2008, 09:40 PM) *


I've used IE7 hacks before (copy n pasted) but I don't understand what I would put in the comments to instruct IE.

Also, I found that my numbers wern't correct in the nav css. They're aligned now. :S
Go to the top of the page
 
+Quote Post
thesealportaltea...
post Feb 19 2008, 11:03 AM
Post #4


Rapid Squeezer
****

Posts: 218
Joined: 14-February 08
From: Currently loacted in bustle of vurtual servers hosted by GoDaddy.com.


CODE
<!--[if IE]>
Special instructions for IE 5,6,7 here
<![endif]-->

I know this works from experience, now I don't know if you can also say specifically IE 7, but it responds to if IE.


--------------------
We are sorry but complaint.hell is not registered to Heaven Inc.
TheSealPortal.com - Yea, we are celebrating are 200th post at TWS. Everybody Party.
Go to the top of the page
 
+Quote Post
902
post Feb 19 2008, 08:11 PM
Post #5


Squeezing
***

Posts: 65
Joined: 14-February 08


What I mean is what specifically would I put in there.

Something like..


.header {padding-top: 20px;}

and it will be picked up by IE, if it isn't already in my css.

This post has been edited by 902: Feb 19 2008, 08:15 PM
Go to the top of the page
 
+Quote Post
Monie
post Feb 20 2008, 03:59 AM
Post #6


Squeeze Machine
*****

Posts: 733
Joined: 13-February 08
From: Borneo


It there is a same CSS style declared in your general CSS, it won't be used when you view your site in IE browser.
If you put in like padding-top: 20px; in your general CSS and you put in padding-top: 100px; in your other CSS style for your IE trick (<!--[if IE]>),
your page will use 100px (if you use IE browser) and it will use 20px (if you use other browser than IE).

Hope that explains well biggrin.gif


--------------------

Go to the top of the page
 
+Quote Post
Jason
post Feb 20 2008, 04:39 AM
Post #7


Master of the Universe
Group Icon

Posts: 1,298
Joined: 15-February 08
From: London, England


Remember to put the IE stylesheet after your site style sheet. Otherwise your site changes will overwrite the IE style sheet.


I would like to help you with the styling problem but currently I am without IE while I sort out my laptop problems.


--------------------
Go to the top of the page
 
+Quote Post
thesealportaltea...
post Feb 20 2008, 08:04 AM
Post #8


Rapid Squeezer
****

Posts: 218
Joined: 14-February 08
From: Currently loacted in bustle of vurtual servers hosted by GoDaddy.com.


QUOTE
Remember to put the IE stylesheet after your site style sheet. Otherwise your site changes will overwrite the IE style sheet.

Didn't know that.

I looked in IE 6 and I didn't see a misalignment. Check it on another system to be sure it isn't a problem with the install.


--------------------
We are sorry but complaint.hell is not registered to Heaven Inc.
TheSealPortal.com - Yea, we are celebrating are 200th post at TWS. Everybody Party.
Go to the top of the page
 
+Quote Post
Linda
post Feb 20 2008, 08:39 AM
Post #9


Co-Founder
Group Icon

Posts: 3,095
Joined: 13-February 08
From: Pink House in USA


I see it in IE 6. There is a large space between the navigation and the photo and the navigation is too wide.

Have you considered doing a simple navigation without relative positioning?
I know this example isn't perfect but it might get you started in a less complex way.


--------------------
Go to the top of the page
 
+Quote Post
Daygon
post Feb 20 2008, 06:22 PM
Post #10


Rapid Squeezer
****

Posts: 120
Joined: 13-February 08
From: Houston, Texas


ill check it on on my laptop when i get to school but right now im on my mac and everything looks fine to me... if anything you're just going to have to do the hack in order to make it work... Are you using a WYSIWYG Program? Cause they can cause a lot of problems too


--------------------
Jonathon Harrelson
Portfolio: InterAction Media Inc
Available for work
Go to the top of the page
 
+Quote Post
902
post Feb 21 2008, 11:55 AM
Post #11


Squeezing
***

Posts: 65
Joined: 14-February 08


I redesigned the nav and had to realign it as a result.

Now that I try it on other comps I see there's a gap between the nav and the main pic. It's not happening on my notebook, in IE or FF, but when I check on other comps, I'm getting this.

They're both in the header and the margins have all been zero'd.

Any idea what's causing this?
Go to the top of the page
 
+Quote Post
thesealportaltea...
post Feb 21 2008, 12:02 PM
Post #12


Rapid Squeezer
****

Posts: 218
Joined: 14-February 08
From: Currently loacted in bustle of vurtual servers hosted by GoDaddy.com.


Mabey your version of IE is has the latest update where the other computers do not. Or visa-versa. It might even be an environment issue, which os was used on the notebook and the other computer?


--------------------
We are sorry but complaint.hell is not registered to Heaven Inc.
TheSealPortal.com - Yea, we are celebrating are 200th post at TWS. Everybody Party.
Go to the top of the page
 
+Quote Post
902
post Feb 21 2008, 01:18 PM
Post #13


Squeezing
***

Posts: 65
Joined: 14-February 08


I've tried it on 3 systems, and they're all xp pro. It appears separated in IE and looks fine in FF. Prolly just IE 6 like Linda said.

Anything I can do?

I'll try zeroing the margins using the if IE 6 thingy.

This post has been edited by 902: Feb 21 2008, 01:28 PM
Go to the top of the page
 
+Quote Post
902
post Feb 21 2008, 03:48 PM
Post #14


Squeezing
***

Posts: 65
Joined: 14-February 08


I don't think that did any good.

I'm wondering why this nav is messed in IE6 while the one I crearted using the same method isn't. www.maxfield.co.nr

Might it have to do with the nav being the same width as the main table?
Go to the top of the page
 
+Quote Post
Daygon
post Feb 22 2008, 12:34 AM
Post #15


Rapid Squeezer
****

Posts: 120
Joined: 13-February 08
From: Houston, Texas


In IE 7 on vista looks fine... so i dont know what to tell you...


--------------------
Jonathon Harrelson
Portfolio: InterAction Media Inc
Available for work
Go to the top of the page
 
+Quote Post
902
post Feb 22 2008, 07:41 AM
Post #16


Squeezing
***

Posts: 65
Joined: 14-February 08


It's IE6 giving the problem. I'm slowly deleting parts of the css to see if I can find what's causing it.

Anyone wanna look at the css to see if they can find a glaring mistake?

My CSS

I'm tempted to just make a different nav that doesn't look as bad when it's not attached. Like something rounded at the bottom.

This post has been edited by 902: Feb 22 2008, 07:43 AM
Go to the top of the page
 
+Quote Post
902
post Feb 22 2008, 07:53 AM
Post #17


Squeezing
***

Posts: 65
Joined: 14-February 08


Wow, I think I fixed it.I changed

CODE
#navigation{margin-bottom 0px;}

/* I changed to */

#navigation{margin-bottom 0 0px;}

/*also changed */

# navigation ul { margin-top: 0px; }

/*to */

# navigation ul { margin: 0px; }
Go to the top of the page
 
+Quote Post
Stuart
post Feb 22 2008, 11:11 AM
Post #18


Squeezing
***

Posts: 58
Joined: 13-February 08
From: Squeezin' at the juice bar


Well, you're missing a colon in the first one. Should be this:
CODE
#navigation{margin-bottom: 0 0px;}


--------------------
Stuart :: Squeeze it up!

QUOTE
Macs can squeeze the juice out of Windows!

Go to the top of the page
 
+Quote Post
If you found The Web Squeeze to be helpful, please donate so we can keep this site FREE, FRESH, and fortified with Web Design & Development info!
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No new   15 902 680 25th February 2008 - 04:06 AM
Last post by: JasonStanley
No New Posts   11 emjayjay 746 23rd February 2008 - 04:49 PM
Last post by: emjayjay
No New Posts   4 friendd 200 31st March 2008 - 04:44 AM
Last post by: Justify
No New Posts   2 902 210 12th April 2008 - 08:47 AM
Last post by: 902
No New Posts   3 paintingtheweb 218 18th April 2008 - 07:04 AM
Last post by: karinne