Results 1 to 2 of 2

Thread: specifying Height and width for inline div

  1. #1
    Join Date
    Apr 2005
    Location
    Sydney, Australia
    Posts
    49
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Arrow specifying Height and width for inline div

    Ok, mIke mentioned it once I think but I can't find the reference:

    -you can't specify height and/or width? for an inline div?

    is this correct?

    Thanx stax

  2. #2
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by wishiwasageek
    Ok, mIke mentioned it once I think but I can't find the reference:

    -you can't specify height and/or width? for an inline div?
    I've mentioned it in a couple of threads, but I don't think I've written it in direct response to one of your posts (which is why you might not have found anything).

    is this correct?
    Yes, it is. To be more precise, you cannot set the height or width of non-replaced, in-line elements.

    Replaced elements are those that tend to have intrinsic dimensions: images and form controls (including object elements). Their size isn't affected by things around them, but by what they are. Thus, non-replaced elements are everything else.

    In-line (or text-level) elements are those like links, and phrase elements (strong, em, cite, etc). In this instance, they are also block-level elements that are rendered in-line due to a display: inline CSS declaration.

    Hope that helps,
    Mike

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •