This is a discussion on "[SOLVED] DIV Positioning Problem" within the Web Page Design section. This forum, and the thread "[SOLVED] DIV Positioning Problem are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] DIV Positioning Problem
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
[SOLVED] DIV Positioning Problem
Hi guys,
I am new to CSS really and I am having a problem with an area i am hoping somebody can help me with. Basically i have a design, which has a header, i want to position my navigation_div in a specific place over the header_div. I have positioned it using margin_top etc but it outputs it correctly in IE but not in Firefox. in FF the position is out by about 10px. How the hell can i position it where i want it so that it outputs the same in IE and FF give or take a few pixels. If someone could help i would really appreciate it as i am stuck at the moment. Cheers Dan |
|
|
|
#2
|
|||
|
|||
|
Re: DIV Positioning Problem
have u got a link or could you post some code?
|
|
#3
|
|||
|
|||
|
Re: DIV Positioning Problem
Hi
I haven't got any code as the only thing i have put on the site is the header, as i am still trying to position the navigation. Do you know a general style that i could use to exactly position my div??? Dan |
|
#4
|
|||
|
|||
|
Re: DIV Positioning Problem
well u can use position: absolute; on your navigation div that i wouldnt if i was you. Do u want it in the centre?
|
|
#5
|
||||
|
||||
|
Re: DIV Positioning Problem
Different browsers have different defaults, and it's always easier to keep a design consistent if you reset certain attributes, namely margin and padding.
You can use
If that's not the case, make sure you've specified a width and height for your header. Then try using margins and paddings on the nav to position it. Alternatively, the better method might be to do what danny said. Set your header to
Example
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
#6
|
|||
|
|||
|
Re: DIV Positioning Problem
Hi guys
Thanks for your help, aso186. That piece of code for the css worked a treat. Thanks as well danny. Will post the site when it is finished so that you can see what i was trying to acheive. Thanks Dan |
|
#7
|
||||
|
||||
|
Re: DIV Positioning Problem
thread marked solved
__________________
WelshStew If you think I've helped, click the "Thanks" tierney rides tboard - uk site | xtreme wales - extreme clothing WebForumz - facebook | LinkedIn
Last Blog Entry: Phorm approved for UK rollout (Sep 17th, 2008)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] div positioning problem | danny322 | Web Page Design | 5 | Nov 28th, 2007 01:05 |
| [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 |
| [SOLVED] Link Color and problem with Image positioning! | Ed | Web Page Design | 33 | Oct 10th, 2007 11:17 |
| Positioning problem - help please | Rod_G | Web Page Design | 8 | Apr 24th, 2006 12:03 |