[SOLVED] Help with positioning in FireFox and IE

This is a discussion on "[SOLVED] Help with positioning in FireFox and IE" within the Web Page Design section. This forum, and the thread "[SOLVED] Help with positioning in FireFox and IE are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Closed Thread
 
LinkBack Thread Tools
  #1  
Old Oct 4th, 2007, 23:40
New Member
Join Date: Oct 2007
Location: US
Age: 38
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED] Help with positioning in FireFox and IE

Hi everyone,

I'm still really new to web design and I'm working on a personal site, but I'm having a heck of a time with getting consistent positioning of my ASP.NET controls in Firefox and IE 7.

I have a navigation div that contains a Menu Control from the ASP.NET 2.0 CSS Friendly Control Adapters 1.0. I've been able to get it to position correctly horizontally, so it looks centered between FireFox and IE 7; however, everything looks good in Firefox. When I view it in IE 7 under the menu items there is a number of extra lines, that I have not been able to get rid of.

Viewed in FireFox 2.0




View in IE 7



Below is the CSS for the div that contains this menu.

Code: Select all
#top_nav {
    width: 100%;
    background-color: Teal;
    padding-left: 195px;
    padding-right: 195px;
    padding-bottom:20px;
    padding-top: -5px
}
Can someone please help me to get it to look like it does in Firefox when viewed in IE also?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!

  #2  
Old Oct 4th, 2007, 23:46
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help with positioning in FireFox and IE

Try setting a height keeping in mind all the extra padding and see if you can't get rid of the extra spacing.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old Oct 4th, 2007, 23:54
New Member
Join Date: Oct 2007
Location: US
Age: 38
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help with positioning in FireFox and IE

WOW!! That's just as quick as IM. I've never received a response on any forum so quickly! Your suggestion worked, many many thanks. I've been working on trying to get that figured out for a few days now.

Your awesome!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old Oct 5th, 2007, 01:08
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help with positioning in FireFox and IE

Isn't it nice when it's that easy! You are so welcome!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old Oct 5th, 2007, 01:39
New Member
Join Date: Oct 2007
Location: US
Age: 38
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help with positioning in FireFox and IE

Yes it very much is. I have two final questions. Can you tell me how I can correct the following issues below:

1. Notice in the screenshots the amount of space between my navigation menu and the other content. How can I have the other content up even with the navigation menu? The amount of space as you can see is different in Firefox and IE, but I would like to not have a space there at all in either browser.

2. Notice also in the screenshots my navigation div extends past everything else. How can I reduce this so that everything is even?

Here is my CSS

Code: Select all
#top_nav {
    width: 100%;
    background-color: Teal;
    height: 19px;
    padding-left: 195px;
    padding-right: 195px;
    padding-bottom: 0px;
}

#container {
    position: relative;
    width: 100%;
}

#left_col {
    width: 200px;
    position: absolute;
    left: 0px;
    top: 0px;
}

#page_content {
    margin-right: 200px;
    margin-left: 200px;
}

#right_col {
    width: 200px;
    position: absolute;
    right: 0px;
    top: 0px;
}

#footer {
    width: 100%;
    background-color: Teal;
}
Viewed in FireFox 2.0.



Viewed in IE 7.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #6  
Old Oct 5th, 2007, 01:52
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Re: Help with positioning in FireFox and IE

Quote:
Originally Posted by CoolBreeze View Post

1. Notice in the screenshots the amount of space between my navigation menu and the other content. How can I have the other content up even with the navigation menu? The amount of space as you can see is different in Firefox and IE, but I would like to not have a space there at all in either browser.
Since I dont have the HTML file, I have not tested them yet but the idea is that you should give it some {margin-top: 0} to the #container would do just that, but I am sure that this thing won't work if your div is a absolute or relative position.

Quote:
Originally Posted by CoolBreeze View Post

2. Notice also in the screenshots my navigation div extends past everything else. How can I reduce this so that everything is even?
Try giving it a width..
and set the {margin: 0 auto;} this will center the #top_nav div in the horizontal center.
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)

Last edited by Monie; Oct 5th, 2007 at 01:55.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #7  
Old Oct 5th, 2007, 02:00
New Member
Join Date: Oct 2007
Location: US
Age: 38
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help with positioning in FireFox and IE

Thanks for the quick reply. As far as Question 1, it is true the position is set to relative for my #container. How would you suggest I fix this problem, because I did try adding a margin-top: 0px and it didn't work when viewed in either browser.

For the Question 2 I already have a width of 100% in my #top_nav, so that it'll adjust with the browser window size. Again I'm still learning, so if there is a better way to do this to get the nav to be in-line with everything else please tell me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #8  
Old Oct 5th, 2007, 02:10
New Member
Join Date: Oct 2007
Location: US
Age: 38
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help with positioning in FireFox and IE

It appears that the padding in my #top_nav is what is throwing everything off with the extra long nav div; however I don't know how to I can get my menu to center otherwise.

Code: Select all
#top_nav {
    width: 100%;
    background-color: Teal;
    height: 19px;
    padding-left: 195px;
    padding-right: 195px;
    padding-bottom: 0px;
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #9  
Old Oct 5th, 2007, 02:16
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Re: Help with positioning in FireFox and IE

Post the CSS and the related HTML file so I can see whats wrong with the code

Well actually, nothing's wrong with the code, just some setting need to be done to get what you want..
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #10  
Old Oct 5th, 2007, 11:42
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help with positioning in FireFox and IE

Just guessing here since I haven't seen the working code but try changing the width% of the navigation to 99% or 98% and see if that brings it in a little.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #11  
Old Oct 6th, 2007, 00:30
New Member
Join Date: Oct 2007
Location: US
Age: 38
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help with positioning in FireFox and IE

I think I got it now, by just removing the width % on the nav Div altogether.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] css positioning issue danny322 Web Page Design 4 Nov 23rd, 2007 13:32
[SOLVED] txt positioning in a div danny322 Web Page Design 2 Nov 13th, 2007 12:39
[SOLVED] positioning problem (ie and ff) danny322 Web Page Design 4 Nov 9th, 2007 15:31
Firefox Positioning Problems mikka23 Web Page Design 8 Nov 17th, 2006 09:37
IE/Firefox positioning problems jordan8201 Web Page Design 11 Dec 6th, 2005 18:34


All times are GMT. The time now is 06:27.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42