Congratulations to AcaCandy on her 100,000th post!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen blue screen boot bsod computer connection crash css dell drive driver drivers email error ethernet excel firefox firefox 3 freeze hard drive internet internet explorer itunes laptop linux malware monitor network networking nvidia outlook outlook 2003 outlook 2007 outlook express partition password problem router slow software sound trojan usb video virus vista windows windows xp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Solved: Differently treated div's


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
Big-K's Avatar
Distinguished Member with 6,883 posts.
 
Join Date: Nov 2003
Location: Kansas
Experience: Advanced
29-Oct-2006, 07:43 PM #1
Solved: Differently treated div's
I'll be honest here, i'm only just learning css positioning correctly. I've got a site layout almost working, except for one thing. There's two main wrappers, a header and a content. In FF it works fine, the header is set 102px from the top, and the content appears right under it. It does that via being static. In IE, however, it doesn't do that. Instead the content div is just overlapping the header, it has the top padding i give it, but it doesn't follow static rules. It aligns just fine horizontally, but not vertically.

Code:
<body style="text-align:center; background-color:#000000; background-image:url(./img/body.jpg); background-repeat:no-repeat; background-position:50% 83px; margin:0;">

<div id="nav_wrapper" style="margin-left:auto; margin-right:auto; width:900px; height:13px; padding-top:102px;">

<div style="height:13px; position:absolute; padding-left:579; z-index:auto;"><a href="index.php"><img src="./img/home_1.gif" rsrc="./img/home_2.gif" alt="home" /></a></div><div style="height:13px; position:absolute; padding-left:624; z-index:auto;"><a href="index.php?s=tour"><img src="./img/tour_1.gif" rsrc="./img/tour_2.gif" alt="tour" /></a></div><div style="height:13px; position:absolute; padding-left:667; z-index:auto;"><a href="index.php?s=pics"><img src="./img/pics_1.gif" rsrc="./img/pics_2.gif" alt="pics" /></a></div><div style="height:13px; position:absolute; padding-left:710; z-index:auto;"><a href="index.php?s=band"><img src="./img/band_1.gif" rsrc="./img/band_2.gif" alt="band" /></a></div><div style="height:13px; position:absolute; padding-left:752; z-index:auto;"><a href="index.php?s=reps"><img src="./img/reps_1.gif" rsrc="./img/reps_2.gif" alt="reps" /></a></div><div style="height:13px; position:absolute; padding-left:792; z-index:auto;"><a href="index.php?s=store"><img src="./img/store_1.gif" rsrc="./img/store_2.gif" alt="store" /></a></div><div style="height:13px; position:absolute; padding-left:840; z-index:auto;"><a href="index.php?s=contact"><img src="./img/contact_1.gif" rsrc="./img/contact_2.gif" alt="contact" /></a></div>
</div>

<div id="news_bg" style="position:absolute; left:50%; width:300px; height:360px; margin-top:14px; margin-left:-436px; padding:15px; position:absolute; background-color:#ffffff; filter:alpha(opacity=35);-moz-opacity:.35;opacity:.35;"></div>
<div id="news_text" style="width:365px; height:350px; padding-left:14px; padding-top:14px; position:absolute;">

Hi
</div>
</div>
</body>
Big-K's Avatar
Distinguished Member with 6,883 posts.
 
Join Date: Nov 2003
Location: Kansas
Experience: Advanced
31-Oct-2006, 05:07 PM #2
bump
Big-K's Avatar
Distinguished Member with 6,883 posts.
 
Join Date: Nov 2003
Location: Kansas
Experience: Advanced
31-Oct-2006, 05:42 PM #3
And nevermind, found a fix in a weird method of centering.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 07:44 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.