SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    May 2002
    Location
    Northern Ireland
    Posts
    93
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Dreamweaver , H2 Tag and the missing colour?

    How do all?

    I've used Dreamweaver 4 to redefine the H2 Tag throughout my Webpages and all looks hunkey dorey on both Dreaweaver itself and when I check the code. But when I preview in a browser it displays as if no colour has been specified for the H2 tag (it previews in black when I've clearly set the colour as blue (I've even double checked my style sheet and it's set as blue?)

    The H1 and H3 tags (also redefined) all preview as they should but not the H2?

    Any advice much appreciated.

    Regards

    Andrew

  2. #2
    SitePoint Enthusiast
    Join Date
    Jun 2002
    Posts
    69
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    h2 css...

    i am not a regular DW user... but if you post the css... it'll make the review a bit easier. you said that the h1 and h3 are fine... so i can only assume that something has run amuck in DWs handling of your css...

  3. #3
    SitePoint Enthusiast
    Join Date
    May 2002
    Location
    Northern Ireland
    Posts
    93
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cheers for the reply coffeeKid.
    As soon as you mentioned my Stylesheet I checked it myself and I'm embarrassed to say I had left out a bracket. "Whoops!" On inserting it the Style sheet now works okay.

    Can I ask as a related add on please?
    Is there a way of defining line spacing with the H2 tag?
    I want my body text to follow on the immediate line below my H2 tag but DW (or perhaps the browser?)

    The H2 part of my Stylesheet reads:-

    h2 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #003366}

    an example of my HTML:-

    <h2>I have just moved into a new property and have no bin. How do I obtain one?</h2>
    <p>The RCA collects rates on behalf of the City and Borough/District Councils but is not responsible for rate funded services.</p>

    However this seems to insert a blank line between the question <h2> and the answer <p> and I would like to remove this.

    Cheers

    Andrew

  4. #4
    SitePoint Wizard iTec's Avatar
    Join Date
    May 2001
    Location
    Sydney, Australia
    Posts
    2,243
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by Andrew_Sam
    Can I ask as a related add on please?
    Is there a way of defining line spacing with the H2 tag?
    I want my body text to follow on the immediate line below my H2 tag but DW (or perhaps the browser?)
    Code:
    h2 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;
    font-weight: bold; color: #003366 margin-bottom: 0px;}
    Specifying a margin-bottom will remove the space under your H2 tag, yet retain the space above it, if you want to remove both the top and bottom spacing then margin: 0px; will do the trick.

  5. #5
    SitePoint Enthusiast
    Join Date
    May 2002
    Location
    Northern Ireland
    Posts
    93
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Many thanks one and all and especially iTec.
    The margin bottom specification was just what I wanted to know.
    Cheers
    Andrew


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
  •