Results 1 to 3 of 3

Thread: Height attribute for CSS image gallery;

  1. #1
    Join Date
    Nov 2006
    Location
    Whitehorse, Yukon
    Posts
    19
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question Height attribute for CSS image gallery;

    1) Script Title: CSS Image Gallery

    2) Script URL (http://www.dynamicdrive.com/style/cs...-image-gallery):

    3) Describe problem: Can someone help me with how to add a height attribute to .gallerycounter in the css please?
    Last edited by jscheuer1; 07-29-2007 at 05:14 AM. Reason: fix link

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    There are no attributes in css (the instructions are misleading). They are called properties, and they are given values. There is no .gallerycounter selector in the CSS Image Gallery.

    I think you meant (for example):

    Code:
    .gallerycontainer{
    position: relative;
    height:250px;
    /*Add a height property and set its value to the largest image's height to prevent overlaying*/
    }
    I've corrected the instructions (red).
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Nov 2006
    Location
    Whitehorse, Yukon
    Posts
    19
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Thank you John. Much appreciated.

    Is there also something else missing in the instructions? Does one not need a line like

    <link rel="stylesheet" href="css/imagelibrary.css" type="text/css" media="screen" />

    in the head of the html page?
    Last edited by Yukoner; 07-29-2007 at 02:39 PM.

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
  •