|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
background color with div width
On the main page of my site, I have a "slogan box" with a width set to 40%. This is outlined and has a background color. In IE, it outlines and colors in the blank space up to 40%, the desired effect. But in Firefox and Mozilla, it outlines only up to where the text stops.
Here's the main css behind it: #slogan { border-bottom:2px solid black; border-right:2px solid black; border-left:2px solid black; background-color:#ABAABB; font-family:comic sans ms; width:40%; } Attactched is the screenshot from IE and firefox. How can I make it look like it does in IE for all browsers (i.e., what is the correct code?) The full code can be seen here.
__________________
Free Willy and the Whalers Quote:
|
|
#2
|
|||
|
|||
|
try putting Display:Block in your CSS there
Hope that helped ~Zero |
|
#3
|
|||
|
|||
|
moved...
__________________
Jack --------- use code tags become vegetarian python? yes, sir! unarm.org get firefox If I helped you then please click the " " in the upper right-hand corner of my post.
|
|
#4
|
||||
|
||||
|
Yes, displayed:block works perfectly. Thanks.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > background color with div width |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|