HighDots Forums  

CSS Help!

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss CSS Help! in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
muzicman82
 
Posts: n/a

Default CSS Help! - 11-09-2004 , 03:09 AM






I started this in another thread... but it went off topic... The thread is
located at
http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=189&
threadid=917342&forumid=12 Sorry for the new post, but I can't figure this
out! Ok, I have Firefox 1.0 and IE 6. They are rendering the CSS
differently... #main { background:#D9E6FF; margin-top: 8px; margin-right:
256px; margin-left: 8px; margin-bottom: 8px; padding:0 0 10px; color:#000000;
border: 1px solid #496F91; } #sidebar { width:240px; float:right; margin-top:
8px; margin-right: 8px; margin-left: 8px; margin-bottom: 8px; font-size:97%;
line-height:1.5em; background-color: #F1F1F1; } You can see the page at
www.muzicman82.com/blog/ It's a Blogger template, but its plain CSS. In IE, the
right margin for #main is ignored, but in Firefox the page is perfect. I tried
doubling the left margin on sidebar to 16px and that didn't change a darn
thing. Any ideas?


Reply With Quote
  #2  
Old   
David
 
Posts: n/a

Default Re: CSS Help! - 11-09-2004 , 09:03 AM






Okay Muzicman82...

Here's what I've got:

http://www.visiworks.com/test1.asp

This works in Firefox, Mozilla, Opera, and IE6 (PC). Can't tell you whether
it works in Safari or Mac IE.

Basically, here's what I've modified:

#main {
width: auto;
background:#D9E6FF;
margin-top: 8px;
margin-right: 255px;
margin-left: 8px;
margin-bottom: 8px;
padding:0 0 10px;
color:#000000;
border: 1px solid #496F91;
}
#sidebar {
width:240px;
float:right;
margin-top: 1px;
padding: 6px;
font-size:97%;
line-height:1.5em;
background-color: #F1F1F1;
}

See if that works for you. IE is funny about margins on div's with floats
when they're not contained by anything but the body, so I find that using
padding seems to work cross-browser a little more predictably than margins
(in this particular situation, anyhow.)

David Young
CFWebmasters.com
david (AT) cfwebmasters (DOT) com


"muzicman82" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
I started this in another thread... but it went off topic... The thread
is
located at

http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=189&amp;
threadid=917342&amp;forumid=12 Sorry for the new post, but I can't figure
this
out! Ok, I have Firefox 1.0 and IE 6. They are rendering the CSS
differently... #main { background:#D9E6FF; margin-top: 8px;
margin-right:
256px; margin-left: 8px; margin-bottom: 8px; padding:0 0 10px;
color:#000000;
border: 1px solid #496F91; } #sidebar { width:240px; float:right;
margin-top:
8px; margin-right: 8px; margin-left: 8px; margin-bottom: 8px;
font-size:97%;
line-height:1.5em; background-color: #F1F1F1; } You can see the page at
www.muzicman82.com/blog/ It's a Blogger template, but its plain CSS. In
IE, the
right margin for #main is ignored, but in Firefox the page is perfect. I
tried
doubling the left margin on sidebar to 16px and that didn't change a darn
thing. Any ideas?




Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.