Results 1 to 4 of 4

Thread: Trying to add another header tag

  1. #1
    Join Date
    Nov 2011
    Posts
    205
    Thanks
    2
    Thanked 1 Time in 1 Post

    Default Trying to add another header tag

    I would like to change the colour of the text shown on the page below.
    http://www.theremotedoctor.co.uk/skype.html

    The long sentence which is currently red needs to be white,otherwise the page is how it should be.
    As other text on the site also use the same h2 tag it needs to be assigned its own h number.
    Trying to do this just just makes the text very small and the dotted line dissapear.

    Please could you advise.
    Last edited by theremotedr; 10-20-2013 at 11:20 AM.

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    2,038
    Thanks
    16
    Thanked 316 Times in 314 Posts
    Blog Entries
    13

    Default

    Give it a class;
    Code:
    <h2 class="mytext">
    And then target that in your CSS;
    Code:
    h2.class { color:white; }
    This way, you can still use the h2 tag.

    Actually, your tag is already using a class of "borderisall" which I can't see in your stylesheet so you could probably use that.
    Focus on Function Web Design | Latest News RSS | Facebook | Twitter |
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps |
    The only limit to creativity is imagination: JemCon.org

  3. #3
    Join Date
    Nov 2011
    Posts
    205
    Thanks
    2
    Thanked 1 Time in 1 Post

    Default

    Are you able to assist further please.
    Am i to leave the code in the html page as it is ?
    I am not sure what i now need to do in the css file,what do i need to write.

    I come a long way with trying to build this site with some help but some things just stump me.

  4. #4
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    2,038
    Thanks
    16
    Thanked 316 Times in 314 Posts
    Blog Entries
    13

    Default

    Leaving the HTML as-is, you should just be able to add this to your CSS;
    Code:
    h2.borderisall { color:white; }
    Focus on Function Web Design | Latest News RSS | Facebook | Twitter |
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps |
    The only limit to creativity is imagination: JemCon.org

Similar Threads

  1. Accordion header anchor link work while header is expanded
    By ngguh in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 05-10-2012, 08:11 PM
  2. On scroll header collapse to smaller sticky header
    By danielmeade in forum JavaScript
    Replies: 3
    Last Post: 07-17-2011, 01:28 PM
  3. Replies: 1
    Last Post: 08-28-2008, 09:52 PM
  4. Header bar
    By dbldee in forum CSS
    Replies: 1
    Last Post: 08-17-2007, 04:18 PM
  5. Header
    By crazytyler34 in forum HTML
    Replies: 6
    Last Post: 04-27-2006, 12:09 PM

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
  •