Forum Moderators: not2easy

Message Too Old, No Replies

H1 inside div element

         

tonynoriega

11:10 pm on Feb 10, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



is this wrong syntax? becuase my header is not reflecting how i want it to look...?#?#

#top-half{
width:350px;
height:350px;
float:left;
}

#top-half h1[
font-size:18px;
color:#0068b3;
padding:0px;
margin:0px;
}

*html*

<div id="top-half">
<h1>header does not show how i want</h1>
</div>

wyweb

11:18 pm on Feb 10, 2009 (gmt 0)



Fix your bracket

#top-half h1[b][5][[/5][/b]

tonynoriega

11:22 pm on Feb 10, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ok, sorry...typo.

its right in the CSS sheet.

however, it looks just like i would think in FF 3.0.6 on a MAC, but not on IE7 on PC?

wyweb

11:29 pm on Feb 10, 2009 (gmt 0)



I'm using IE 7 on a PC Tony. H1 is responding to the ID. I've copied the code exactly on a test page and changed font color and size and those changes are reflected on the page.

webfoo

12:16 am on Feb 11, 2009 (gmt 0)

10+ Year Member



Try changing the CSS to this:

#top-half-container {
width:350px;
height:350px;
float:left;
}

#top-half-header {
font-size:18px;
color:#0068b3;
padding:0px;
margin:0px;
}

and the HTML to this:

<div id="top-half-container">
<h1 id="top-half-header">header does not show how i want</h1>
</div>

sneakyhybrid

5:52 am on Feb 11, 2009 (gmt 0)

10+ Year Member



#top-half > h1

:)