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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bgcolor never changes.

Status
Not open for further replies.

countdrak

Programmer
Jun 20, 2003
358
US
My code first

Code:
<div id="Layer2" style="position:absolute; width:554px; height:46px; z-index:11; left: 247px; background:background-color: #FFFFFF;top: 15px;"></div>

The background color of this layer never changes..the layer is always tranperant and displays the color of my body tag <body bgcolor="#CCCCCC">. Any ideas why?
 
I think you just need to do:

background-color: #FFFFFF

not

background:background-color: #FFFFFF

[conehead]
 
Whoa. 11 z-indexes. What's going on with that?

*cLFlaVA
----------------------------
Lois: "Peter, you're drunk!"
Peter: "I'm not drunk, I'm just exhausted from stayin' up all night drinking!
 
:) Dont ask! I dont think I am big fan of CSS! TheConeHead knows what I am talking about.
 
Sorry I dont now if I should start a new thread for this but this is something simple. How do I centre things using css. I mean with a table I can just do <table align="center"> ..How do I know the exact centre with CSS? Thanks both you guys.
 
he done gone div crazy EVERY DIV HAS GOT TO GO! IT"S CRAZY LARRY'S DIV SALE [afro2]

[conehead]
 

Code:
<body style="text-align: center;">
    <div style="margin: 0 auto;">word word word.</div>
</body>

*cLFlaVA
----------------------------
Lois: "Peter, you're drunk!"
Peter: "I'm not drunk, I'm just exhausted from stayin' up all night drinking!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top