stfc_boy
01-23-2008, 09:37 AM
Hi Guys,
Quick question. Say throughout my site I have a style that's used throughout my site. I'd basically declare this in a external stylesheet:
h2 {
color:#0064ac;
background:#dadada;
font-size:1.25em;
padding:1px;
padding-left:4px;
text-transform:uppercase;
margin-bottom:5px;
width:500px;}
And then call it in:
<h2>This is the h2 element</h2>
But say on one page I wanted the width to be 300px, is there anyway I could simply change the width in the <h2></h2> tag on one page without messing with all the others? Or is it a case of redeclaring a new css style?
Thanks
Chris
Quick question. Say throughout my site I have a style that's used throughout my site. I'd basically declare this in a external stylesheet:
h2 {
color:#0064ac;
background:#dadada;
font-size:1.25em;
padding:1px;
padding-left:4px;
text-transform:uppercase;
margin-bottom:5px;
width:500px;}
And then call it in:
<h2>This is the h2 element</h2>
But say on one page I wanted the width to be 300px, is there anyway I could simply change the width in the <h2></h2> tag on one page without messing with all the others? Or is it a case of redeclaring a new css style?
Thanks
Chris