positioning problem PLEASE help

This is a discussion on "positioning problem PLEASE help" within the Web Page Design section. This forum, and the thread "positioning problem PLEASE help are both part of the Design Your Website category.



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

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 15th, 2006, 18:37
New Member
Join Date: Sep 2006
Location: MERSEYSIDE
Age: 35
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
positioning problem PLEASE help

Hi all,

really need help. have left my brain somewhere and cant get a position of a menu right.

Im using external CSS to achieve my goals, no tables.

I have a main div box that all content is going in.

In the top right hand side of this a want my basic menu.

I want the menu right over to the right, and about 10px down from the top.

the problem is, mozilla is positioning fine, but IE (my version 6) is sticking it to the very top.

here is CSS:
#navigation {
float:right;
width:100%;
height:20px;
border-top:10px;
}

any ideas whats wrong.

i was thinking of creating a seperate style sheet fro IE browsers ie:
<!--[ifIE]><link rel="blar blar blar"/><![endif]-->

then in my ie.css style sheet having this:

#navigation {
border-top; 15px;
}

this does drop it down to the same in each, but im sure i shouldnt have to do this. Ive done it another way but cant remember.

any help

Geoffb
Reply With Quote

  #2 (permalink)  
Old Sep 15th, 2006, 19:22
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 22
Posts: 1,619
Blog Entries: 1
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via ICQ to spinal007 Send a message via MSN to spinal007 Send a message via Yahoo to spinal007 Send a message via Skype™ to spinal007
Re: positioning problem PLEASE help

it's a lot easier if you give us an url to look at but anyway...

if you haven't defined a top margin for your div, DO.
try: margin:10px 0px 0px 0px;

also, remember that in IE, border/padding are not part of the box whilst it firefox they are
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Reply With Quote
  #3 (permalink)  
Old Sep 15th, 2006, 19:32
New Member
Join Date: Sep 2006
Location: MERSEYSIDE
Age: 35
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: positioning problem PLEASE help

thanks, cant give URL as not web bound yet, only viewing on computer.

have tried to set
border: 0px;
and
padding:0px;

but in firefox it still drops it down more than IE, should i stick to what i have now which is a seperate positioning css style for IE browsers.

this way i can leave firefox where it is and drop IE down to match it, it looks fine like that.

geoffb
Reply With Quote
  #4 (permalink)  
Old Sep 15th, 2006, 20:47
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: positioning problem PLEASE help

Really need to see the rest of the css and your html so we can make a judgement as to what might be influencing what.

As a standard opening bit of css, always start with;
Code: Select all
* {padding: 0; margin: 0}
The reason for this is that different browsers apply different default padding and margins to various elements. This code sets everything to zero so you know where you are starting from.
Reply With Quote
  #5 (permalink)  
Old Sep 16th, 2006, 06:39
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: positioning problem PLEASE help

While this will solve the problem, it may have adverse effects on the rest of the page:

Code: Select all
#navigation {
    position: absolute;
    top: 20px;
    right: 0;
    width: 100%;
    border-top: 10px;
}
It should be mentioned that setting a global margin and padding of zero is merely a preference, not a requirement for things to turn out right. Personally, I don't do it that way.

I do agree that we need to see the page in action though.
Reply With Quote
Reply

Tags
positioning, problem, help

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] DIV Positioning Problem winnard2007 Web Page Design 6 Jan 23rd, 2008 09:22
relative Positioning Problem Dunce Web Page Design 6 Jun 8th, 2007 10:54
Problem with image positioning Marc Web Page Design 1 May 31st, 2007 18:17
Positioning problem - help please Rod_G Web Page Design 8 Apr 24th, 2006 12:03
CSS Positioning Problem - Mac IE 5.2 clearchannel Web Page Design 0 Mar 31st, 2006 10:03


All times are GMT. The time now is 04:26.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs 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 43