Jump to content

vinpkl

Members
  • Posts

    448
  • Joined

  • Last visited

Posts posted by vinpkl

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    <style>
    p.category { background: url("http://i47.tinypic.com/2zsp93m.png") no-repeat top right; float:left }
    p.category span { background: url("http://i48.tinypic.com/1440a3c.png") no-repeat top left; padding: 8px 15px; float:left }
    a{cursor:hand;}
    p{margin:0px; padding:0px;}
    </style>
    </head>
    
    <body>
    <p class="category"><a href="#"><span>Category</span></a></p>
    </body>
    </html>
    
    

     

    vineet

  2. I have been having problems with DIV , is it useful? when the browser is resized or restored to a screen size the items on DIV overlap and make the page ugly.

     

    Any idea?

     

    you must be using absolute positioning for your divs.

     

    provide us code or page to the link to review the problem.

     

    vineet

  3. your html code is fine. just replace your css with this

     

    #CenterMe
    {
        display: block;
        margin-left: auto;
        margin-right: auto;
    width:150px;
    }
    

     

    in this css replace 150px with the actual image width.

     

    vineet

  4. # means id in css

     

    <div style="border-style:solid;border-width:1px;border-color:green;width:580px">
            <div id="CenterMe">
            <img src="MalawiPics/MalawiMe.jpg" alt="">
            </div>
          </div>
    

     

    vineet

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.