Tuesday, December 6, 2011

h1 tags

iv started usin h1 tags on the headlines of my page as i readthat google picks them up better. iv used the h1 tag then attacheda css class to change the style but once iv done all this it seemsto add in an extra blank line below the text which i cant get ridof. how do you get rid of this?h1 tags
pellio wrote:
%26gt; iv started usin h1 tags on the headlines of my page as iread that google picks
%26gt; them up better. iv used the h1 tag then attached a cssclass to change the
%26gt; style but once iv done all this it seems to add in anextra blank line below
%26gt; the text which i cant get rid of. how do you get rid ofthis?
%26gt;
You don't need to use a class, just define the H1 tag in yourcss. Play
around with padding and margins to sort out the extraspacing.

Steve
h1 tags
Margins would be all that's needed - there's no defaultpadding on the %26lt;h1%26gt;.
Just so you'll know, even setting the bottom margin to zerowill not
eliminate the TOP margin of the next element in the codeflow, so you'll
have to adjust that as well.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go- DW FAQs, Tutorials %26amp; Resources
http://www.dwfaq.com - DW FAQs,Tutorials %26amp; Resources
==================


''Dooza'' %26lt;doozadooza@gmail.com%26gt; wrote in message
news:fgcfv6$qv9$1@forums.macromedia.com...
%26gt; pellio wrote:
%26gt;%26gt; iv started usin h1 tags on the headlines of my pageas i read that google
%26gt;%26gt; picks them up better. iv used the h1 tag thenattached a css class to
%26gt;%26gt; change the style but once iv done all this it seemsto add in an extra
%26gt;%26gt; blank line below the text which i cant get rid of.how do you get rid of
%26gt;%26gt; this?
%26gt;%26gt;
%26gt; You don't need to use a class, just define the H1 tag inyour css. Play
%26gt; around with padding and margins to sort out the extraspacing.
%26gt;
%26gt; Steve


.oO(Murray *ACE*)

%26gt;Margins would be all that's needed - there's no defaultpadding on the %26lt;h1%26gt;.
%26gt;Just so you'll know, even setting the bottom margin tozero will not
%26gt;eliminate the TOP margin of the next element in the codeflow, so you'll
%26gt;have to adjust that as well.

And in addition - if you're on 'h1' already, also consider touse 'h2',
'h3' etc. where appropriate.

Micha
  • parameter order
  • No comments:

    Post a Comment