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!

Real basic div question

Status
Not open for further replies.

worldly1

Technical User
Mar 20, 2007
36
US
Working in Dreamweaver and for some reason the background color I apply to a div (through css) doesn't show up in Firefox or IE. Is this a known issue that I am just picking up on now? Background images work fine. Here's my ccode if it helps.

Any direction will be appreciated.

Scott

<style type="text/css">
<!--
.top_text { padding-top: 0px;
padding-bottom: 30px;
padding-left: 20px;
}
#top_div { width: 700px;
margin-right: auto;
margin-left: auto;
background-color: ece9d8;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
padding: 0px;
margin-top: 0px;
margin-bottom: 0px;
}
-->
</style>
</head>

<body>
<div class="top_div" id="top_div">
<p><span class="top_text">Some text here </span>. </p>
</div>
</body>
</html>
 
background-color: ece9d8
should be:
background-color: #ece9d8

:--------------------------------------:
fugitive.gif


All around in my home town,
They tryin' to track me down...
 
Ah-HA! I was copying and pasting that hex number. Thank you for the "enlightenement"

Scott
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top