CSS

 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me



Go Back   Tutorialized ForumsWeb Design & DevelopmentCSS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
  #1  
Old November 26th, 2009, 12:04 PM
robert475 robert475 is offline
Contributing User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Dec 2006
Posts: 24 robert475 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 35 m 43 sec
Reputation Power: 0
CSS/Divs in IE8

Hi

In IE7 my website dispalys fine but in IE8 the div shifts down quite a bit alot causing the website to be out of sync.

This is my code for the divs:

<code>
<div id="otherwebsites">
<div id="titleother">
Have you visited our other websites?
</div>
<ul dir="rtl">
<li><a href="link1">link1</a></li>
<li><a href="link2">link2</a></li>
<li><a href="link3">link3</a></li>
<li><a href="link4">link4</a></li>
</ul>
</div>
</code>


The css is as follows:
<code>
#otherwebsites {
width: 220px;
height: 100px;
margin: -380px 0px 0px 380px;
text-align:right;
}

#otherwebsites ul {
margin: 10px 0px 0px 0px;
padding: 0px;
text-align: right;
list-style-image: url('assets/arrowbulletpoint.jpg');
color: #666666;
font-weight: bold;
font-size: 9pt;
}

#titleother {
width: 240px;
margin-right: -20px;
}

</code>

In IE8 compatibility mode its fine.

Can anyone indicate where I have gone wrong please?

Thanks

Reply With Quote
  #2  
Old December 9th, 2009, 03:20 PM
Squibbit's Avatar
Squibbit Squibbit is offline
Board Geriatric
Tutorialized Novice (500 - 999 posts)
 
Join Date: Sep 2006
Location: Germany
Posts: 887 Squibbit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 Days 16 h 40 m 26 sec
Reputation Power: 0
This is an old post, but the solution is simple. If you want your div layer to remain in the same position no matter the resolution of your screen, you need to add in the position property and define it as absolute, like so;

Code:
#otherwebsites {
position:absolute;
top:XXpx;
left:XXpx;
}


Margins are relative to your window size and screen resolution, which I gather is why you're seeing a change. IE8 is much better for code than IE7 ever was, I'm sure if you tested in Firefox and/or Safari you'll see your site is 'out of sync' also.

Reply With Quote
  #3  
Old November 23rd, 2010, 04:36 AM
jection12 jection12 is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Nov 2010
Posts: 1 jection12 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 44 sec
Reputation Power: 0
Re:IT security training

Hi,
If you facing this problem the solution
Is simple is this problem.yo can go
To online w3 here is good solution for
This problem.

Reply With Quote
Reply

Viewing: Tutorialized ForumsWeb Design & DevelopmentCSS > CSS/Divs in IE8


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.

© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap