Log In · Register

 
 
Closed TopicStart new topic
alignment, issues
destructo-girl
post Jan 6 2007, 04:39 PM
Post #1


Member
**

Group: Member
Posts: 25
Joined: Aug 2005
Member No: 219,116



Is there a way for my layout to be aligned in both Firefox and Internet Explorer? ermm.gif
 
YourSuperior
post Jan 6 2007, 05:15 PM
Post #2


;)
*******

Group: Staff Alumni
Posts: 9,573
Joined: Feb 2005
Member No: 99,124



Yes there is a way.
QUOTE
Okay say for instance if your layout is slightly mis-aligned or maybe even mis-aligned a whole bunch. And you have <div style ="position:static; overflow:auto; margin-left: 600px;"> So you already have one margin-left in your div code. All you have to do is add another margin-left to div code, and add the !important field beside it. Only firefox can recognize the !important field. So it won't affect IE when you edit it. So use the margin-left WITHOUT the !important field to align it in IE. So it would look like this: <div style="position:static; overflow:auto; margin-left: 600px !important; margin-left: 603px;"> So margin-left: ###px !important; is for FIREFOX and margin-left: ###px; is for IE. I hope that you can understand this.


Or if you don't understand my explanation, you can use this:
http://www.createblog.com/forums/index.php?showtopic=89478
 
*incoherent*
post Jan 7 2007, 09:00 PM
Post #3





Guest






besides what alvin said, sometimes the _____ with the !important after it has to go on top and sometimes it has to go on bottom. it's kind of weird how it works.

like this...
<header>
left: 500px!important;
left: 490px; (remember you still have to have this for ie)
</header>
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: