SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast Farhan_G's Avatar
    Join Date
    Feb 2005
    Location
    Islamabad
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Image Border with css

    hello

    i am having some problems with making a image border's with css work with IE.

    this is the code i am using

    Code:
    .img {
    	border: 1px solid #B6CEE5;
    	display: block;
    	padding: 5px;
    }
    In opera and firefox, it works as i want it to be. here's a screenshot



    while in IE all i see is this



    anyway to fix that ?

    thanks

  2. #2
    Non-Member
    Join Date
    Jan 2005
    Location
    Netherlands
    Posts
    4,300
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello

    is it class .img ?? or yust the img ??

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    	<title>12345 12345 12345 12345 12345 </title>
    	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <style type="text/css">
    .img{
    	border: 1px solid #B6CEE5;
    	display: block;
    	padding: 5px;
    }
    	</style>
    </head>
    <body>
    <img src="b_kauai-bay.jpg" width="768" height="512" alt="" class="img" />
    </body>
    </html>

  3. #3
    SitePoint Enthusiast Farhan_G's Avatar
    Join Date
    Feb 2005
    Location
    Islamabad
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i don't understand what ur saying exactly

    if ur asking it's .img, yes it is

    it works fine in opera and firefox

  4. #4
    Non-Member
    Join Date
    Jan 2005
    Location
    Netherlands
    Posts
    4,300
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello


    what DTD are you using this works for IE in strickt

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

  5. #5
    SitePoint Enthusiast Farhan_G's Avatar
    Join Date
    Feb 2005
    Location
    Islamabad
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    oh, thanks

    sorry i forgot to change that, i was just using <html>

    sorry for the trouble, many thanks for the help


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
  •