Wrox Programmer Forums
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 16th, 2006, 02:07 AM
Registered User
 
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default IE & Firefox

Hey guys

My problem has been frustrating me for a while now and after searching many different forums i thought i could post here and see if ay of you could help me out.

My dilema is that i have made a page with a static single picture background, then using a centered container im using position: absolute; for all the objects within.

My problem is that the page layout is slightly different in IE and Firefox, currently all i have on there is the proposed navigation bar but IE places it a little further up the page than what Firefox does. How can i make both browsers place the nav bar and any other elements in the right vertical position?

Heres the page
www.mcicomputers.com/test/index.html

And the css
http://www.mcicomputers.com/test/style.css

Any workarounds or help is greatly appreciated

Thanks Glyn
 
Old August 16th, 2006, 02:26 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

I think it's because you are relying on the default margins and padding the browsers add on elements. Start with taking those away.

body { margin: 0; padding: 0 }
#nav p { margin: 0 }

There. Now it looks the same in both browsers, even of not as you want. You can take it from there.

--
http://yupapa.com
 
Old August 16th, 2006, 02:29 AM
Registered User
 
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Awesome! Thanks heaps, problem solved.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript && keeps turnig into && ayrton Pro VB.NET 2002/2003 3 June 27th, 2005 03:34 PM
send & recive mails from exchange & lotus sever zaheersharief Pro VB 6 1 May 16th, 2005 06:55 AM
Linux & KDE & C++ & QT & MYSQL & Kdevelop Munnnki Linux 0 January 2nd, 2005 05:41 PM
Dreamweaver MX & Firefox 1.0 Compatibility teldridge Dreamweaver (all versions) 3 November 18th, 2004 05:20 PM
sql & join tables & find a field in multiple table trangd Beginning PHP 2 January 29th, 2004 07:18 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.