SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    will code HTML for food Michel V's Avatar
    Join Date
    Sep 2000
    Location
    Corsica
    Posts
    552
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm sure you've all been seeing Netscape 4's weird behaviour with line-heights and images, the images overlapping the text etc... All this because of the line-height attribute.

    So, how do you cancel all styles in a SPAN tag around an image ?
    Is there something like style="none" ?
    [blogger: zengun] [blogware contributor: wordpress]

  2. #2
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    shin-ma...

    by default a span tag has no attributes. It is completely empty of any value.

    If you are talking about a DIV tag (which is a block level element) then you just have to determine which attribute you want to cancel out, then style that particular element.

    For example, by default the <P> tag (and the DIV) both have an extra line-space below them (or margin)

    simply do this:

    p { margin-bottom: 0px; }

    Note that this may not work in Netscape though

    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  3. #3
    will code HTML for food Michel V's Avatar
    Join Date
    Sep 2000
    Location
    Corsica
    Posts
    552
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yup i knew about SPAN thanks
    Just thought about a kind of <span style=" ... "><img src="whatever.jpg"></span>

    And anyway i finally made it with a TABLE
    [blogger: zengun] [blogware contributor: wordpress]


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
  •