SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Dec 2009
    Posts
    321
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Border Visible in IE8 but Not in Chrome ?

    This works in IE8 but the border is not visible in Chrome VER. 19.0.1084.52 m

    Code:
    #slideshow img {
    	width:460px;	/*changes from 470 to accomadate the frame*/
    	height:270px;
    	border-style: inset;
    	border: medium;
    
    }
    Thanks . . . Rick

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,301
    Mentioned
    460 Post(s)
    Tagged
    8 Thread(s)
    Instead of

    Code:
    border: medium;
    it should be

    Code:
    border-width: medium;
    Otherwise, the border: shorthand overrides anything before it.

  3. #3
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,484
    Mentioned
    182 Post(s)
    Tagged
    6 Thread(s)
    Also be careful with the border keywords (such as thin and medium) as they have different values in different browsers because the specs don't explicitly define what size they should be just that they should be thinner or thicker etc. Use px for border to be certain.


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
  •