Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. CSS sytlesheets

CSS sytlesheets

Scheduled Pinned Locked Moved ASP.NET
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tina P
    wrote on last edited by
    #1

    All,

    <li id="img2">
    <a class="current">
    <img src="Images/about_pic.jpg" id="MapHead" alt="Around the world"
    />
    </a>
    </li>

    As shown in the code snippet above, I'm trying to populate a list item (Li) which is part of an Unordered list (UL). As you can see the image I'm trying to display underneath the first couple of items which happens to be hyperlink does not fill the entire space (i.e the class current that is applied to the anchor tag sort of create a border within which the image needs to be displayed, the problem is that in its original resolution (i can't simply change the width adn height of the image as it distorts the resolution) the image does not appear to fill the entire space that is it is sort of in the center of that border created using the class = current as shown above. The question is this, is there any attribute that I can apply to the image either inline or using a class in a css which will enable it to fill the entire area created by the border. Thanks Tina

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups