Re: CSS help needed

by Andrew McFarland <aamcf(at)aamcf.co.uk>

 Date:  Sun, 13 Oct 2002 23:31:06 +0100
 To:  "HWG Basics" <hwg-basics(at)hwg.org>
 References:  s8x1s5 hotmail
  todo: View Thread, Original
At 09:17 13/10/02 -0700, Beth Adler wrote:
>And even
>without a background color, if I use "width: 100%" or "width: 783px" to get
>the link centered, then the whole line becomes an active link and I only
>want the words I put in <a href="">here</a> to be active.  I wish there were
>some way of centering just the link itself.

Centering the link itself relative to what? You seem to want the link text 
in a line of text, and I'm not sure what that means. Could you show us in a 
gif?

>One more question that you guys have mentioned:  What exactly is the
>difference between a "block element" and an "inline element"?

Depends on whether you are talking about HTML or CSS.

In CSS, an element with display: block will basically have a carriage 
return before after it, while an element with display: inline won't. 
Remember CSS is presentational, and CSS block and inline are about how the 
information is presented.

In HTML, the block level elements are those like p and div that are for 
`blocks' of text, and the inline elements are those which are for strings 
of text, like a and span; inline elements are always within block level 
elements in valid code, and inlines never contain blocks. HTML is 
structural, and HTML blocks and inlines are about structure.

By default, the display of the block elements is block, and the display of 
inline elements is inline.

Andrew

--
http://aamcf.co.uk/

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA