|
|
|
#1 (permalink) |
|
Messages: n/a
Hébergeur: |
Hi,
I need to put my product titles in an h1 tag, but still keep the font the same size it is now, plus, not change the size of any other h1 tags throughout the site. How would I do this? My site has a style sheet, but I don't know much about css. But I can copy and paste! Thanks, J |
|
|
|
#2 (permalink) |
|
Messages: n/a
Hébergeur: |
JA wrote:
> Hi, > > I need to put my product titles in an h1 tag, but still keep the font the > same size it is now, plus, not change the size of any other h1 tags > throughout the site. > > How would I do this? My site has a style sheet, but I don't know much about > css. But I can copy and paste! > > Thanks, J > > For your markup: <h1 class="product-title">Magic Wonder Box</h1> For your CSS: h1.product-title { font-size: inherit; } |
|
|
|
#3 (permalink) |
|
Messages: n/a
Hébergeur: |
Thanks Jeremy!
That did it! "Jeremy" <jeremy@pinacol.com> wrote in message news:xrZEj.56819$y05.49186@newsfe22.lga... > JA wrote: >> Hi, >> >> I need to put my product titles in an h1 tag, but still keep the font the >> same size it is now, plus, not change the size of any other h1 tags >> throughout the site. >> >> How would I do this? My site has a style sheet, but I don't know much >> about css. But I can copy and paste! >> >> Thanks, J > > For your markup: > > <h1 class="product-title">Magic Wonder Box</h1> > > > > For your CSS: > > h1.product-title > { > font-size: inherit; > } |
|
|
|
#4 (permalink) |
|
Messages: n/a
Hébergeur: |
Scripsit JA:
> Thanks Jeremy! > > That did it! So you didn't actually test it, and neither did Jeremy. You didn't bother even testing it on the two most widely used browsers, namely IE 6 and IE 7. (They don't support the value inherit, for any property.) What you really _need_ to do is to reconsider this: >>> I need to put my product titles in an h1 tag, but still keep the >>> font the same size it is now, plus, not change the size of any >>> other h1 tags throughout the site. You might be able to cheat some search engines some of the time, but the punishment will come. For example, Google has some useful information for web authors. It's much more useful than the information that "search engine optimization" snakeoil merchants sell you. -- Jukka K. Korpela ("Yucca") http://www.cs.tut.fi/~jkorpela/ |
|
![]() |
| Outils de la discussion | |
|
|