HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

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 Dev Shed Forums Sponsor:
  #1  
Old June 29th, 2000, 09:18 PM
cmatrix cmatrix is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 24 cmatrix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to cmatrix
Hi,

I just finished doing a photo gallery (http://www.djriyad.com/matrix/gallery4.phtml?galid=5)and it does not center correctly in IE, it works fine in both browsers(4.0+) but the images are not aligned properly in IE (they are in netscape). I am not sure why but taking out the position:absolute from the style sheet makes it render correctly in IE but this reference is necessary so i can not omit it and maintain the desired look...

Any help would be appreciated.

Reply With Quote
  #2  
Old July 2nd, 2000, 04:19 AM
billyo billyo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 114 billyo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
I've faced similar problems with positioning. I think it may have to do with netscape's margins, but things positioned in one browser, don't always look right in the other. Try this.

Use your favorite code to detect the client's browser, so...

if (IE)
{
document.write("<style><!--#thing_to_position{position:absolute;top:50px;left:50px;}--></style>")
} else {
document.write("<style><!--#thing_to_position{position:absolute;top:40px;left:40px;}--></style>")
}

<img id="thing_to_position" src="some.gif">
The browser's will love you for positioning things according to their needs...


[This message has been edited by billyo (edited July 02, 2000).]

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > aligning in IE


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway