Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    background is not showing

    background works fine with ffox and chroom but not showing in internet explorer

    #h2{margin:0;padding:4px 10px;font-size:14px;background:url(images/cyo.jpg)no-repeat;color:white;}

    <h2>Hello backgrnd not working</h2>

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,747
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    Hello bitz,
    Your heading tag is not an id. In your CSS it should not have the hash mark, #, in front of it.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    h2{margin:0;padding:4px 10px;font-size:14px;background:url(images/cyo.jpg)no-repeat;color:white;}

    <h2>Hello backgrnd not working</h2>
    i know , but when i remove no-repeat; it works fine in ie, then css not repeat bg in ff and chroom , when i use no-repeat; it works fine in ff and chroom but not show in ie

  • #4
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,747
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    Quote Originally Posted by bitz View Post
    h2{margin:0;padding:4px 10px;font-size:14px;background:url(images/cyo.jpg)no-repeat;color:white;}

    <h2>Hello backgrnd not working</h2>
    i know , but when i remove no-repeat; it works fine in ie, then css not repeat bg in ff and chroom , when i use no-repeat; it works fine in ff and chroom but not show in ie
    Since we don't have your image, or your markup, give us a link to the test site so we can have a look why it's not working.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad


  •  

    Posting Permissions

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