Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorgujjar
    • CommentTimeJul 1st 2008
     permalink
    hey!
    guys got an issue don't know what is happening can any one help that will be really appreciateable. I am working with my website every thing was going perfect but .. this happened here are 2 links.. for Internet explorer and Firefox

    http://umarstudio.com/IE.jpg
    http://umarstudio.com/FF.jpg

    My xhtml:

    <div id="work">

    <a href="#"><img src="driving_img.jpg" alt="drivingschool" /></a>
    <a href="#"><img src="green_img.jpg" alt="greenpeace" /></a>
    <a href="#"><img src="green_img.jpg" alt="greenpeace" /></a>

    </div>

    My CSS:

    #work{
    border:3px solid brown;
    width:534px;
    }

    see the links and I hope you will understand.. Thanks
    • CommentAuthorkesav
    • CommentTimeJul 2nd 2008
     permalink
    Hi Umar Zaman,

    Try adding the following,
    #work a{display: block;}

    -cheers
    Kesav
    Thankful People: gujjar
    • CommentAuthorgujjar
    • CommentTimeJul 2nd 2008 edited
     permalink
    it worked that was really help full..

    Thanks!


    I am designing my new website and almost done here is the older version www.umarstudio.com
    • CommentAuthorgujjar
    • CommentTimeJul 2nd 2008
     permalink
    hi!
    got another question if I want to give more space between those images what should I do in CSS..
    • CommentAuthorkesav
    • CommentTimeJul 2nd 2008
     permalink
    to provide space between the images...

    #work img{margin-bottom: 15px;}

    Adjust the value as per your requirement.
    -cheeers,
    Kesav
    • CommentAuthorgujjar
    • CommentTimeJul 3rd 2008
     permalink
    thanks that was helpful it worked ;)
    • CommentAuthorgujjar
    • CommentTimeJul 3rd 2008
     permalink
    hey..

    got another one i am using "float" to place my side bar "div" to the left and it works perfect in IE but in FF it jumps out form the main container to fix the problem I am using "margin-top:-200px;" I don't think this is the good way to do it I am forcing it to place it at the desire place. So is there any way to fix the overlapping in FireFox I have got the same issue with my other DIVS also in my website..

    #sidebar{
    border: 2px solid #000;
    float: right;
    height: 100%;
    /*margin-top: -200px;*/
    width: 249px;
    }

    Thanks ;)
    • CommentAuthorkesav
    • CommentTimeJul 4th 2008
     permalink
    better give a link to the page here, to easily explain the problem. because I think the problem may be with some other element
    • CommentAuthorrzea
    • CommentTimeJul 4th 2008
     permalink
    What I do have to say is that your HTML code is incorrect:

    <a href="#"><img src="driving_img.jpg" alt="drivingschool" /></a>
    <a href="#"><img src="green_img.jpg" alt="greenpeace" /></a>
    <a href="#"><img src="green_img.jpg" alt="greenpeace" /></a>

    Remove the "/" inside the ahref line. The ahref has a closing tag </a>, hence, you don't need to close it like a <br /> or an <hr />.
  1.  permalink
    His HTML is fine. The trailing slashes are closing the img tags, not the a tags.
    • CommentAuthorgujjar
    • CommentTimeJul 9th 2008 edited
     permalink
    Thanks to every one I fixed the problem with floats and almost done with my website.. ;)
    and ljromanoff is right I am closing the img tags..

    cheers!
Add your comments
    Username Password
  • Format comments as (Help)