Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS not setting width correctly in Firefox 1

Status
Not open for further replies.

makemusic

Programmer
Apr 3, 2004
43
Hi

In my CSS I'm calling a layer that should be 660px wide, but in Firefox it's only appearing as wide as the letters that are contained within it. My CSS code for the layer is as follows, and you can see how it looks at (it's the purple subheading box that appears under the main heading):

#subheading {
position: relative;
left: 0px;
top: 0px;
width: 660px;
background-color: #D0B8DA;
text-align: left;
border: thin solid #5A445E;
padding: 3px;
overflow-y:hidden;
overflow-x:hidden;
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 18px;
display: inline;
font-style: normal;
font-weight: normal;
color: #333300;

Any help gratefully received!
 
Remove this:

Code:
display:inline;

Hope this helps,
Dan

[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
Problem solved, Dan. Thank you. Nice shiny purple star coming your way!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top