PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.info.authoring.CSS > CSS for H1 tag
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
CSS for H1 tag

Réponse
 
LinkBack Outils de la discussion
Vieux 22/03/2008, 02h27   #1 (permalink)
JA
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut CSS for H1 tag

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


  Réponse avec citation
Vieux 22/03/2008, 02h39   #2 (permalink)
Jeremy
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: CSS for H1 tag

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;
}
  Réponse avec citation
Vieux 22/03/2008, 04h07   #3 (permalink)
JA
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: CSS for H1 tag

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;
> }



  Réponse avec citation
Vieux 22/03/2008, 09h12   #4 (permalink)
Jukka K. Korpela
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: CSS for H1 tag

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/

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 07h41.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09267 seconds with 12 queries