www.webdeveloper.com
Results 1 to 3 of 3

Thread: how to organize a gallery

  1. #1
    Join Date
    Feb 2008
    Posts
    13

    how to organize a gallery

    ok so i have this project for school. baisically i have to make a photographic portfolio and i put all the thumbnail pictures in a table( html) but my teacher failed me cause "thats not the proper way to do it. investigate the float property" and so my question is-how can that be acheived-place thumbnails without a table. and it has to be css? ideas? tnx!

  2. #2
    Join Date
    Jan 2005
    Location
    Frankfort, KY, USA
    Posts
    6,167
    FYI
    * My screen resolution is set at 1680x1050
    * I'm accessing your site through a T1 line
    * I'm probably viewing it using Firefox (unless browser is specified)

  3. #3
    Join Date
    May 2007
    Location
    Cleveland, OH
    Posts
    1,403
    Simple, use a little CSS.
    HTML Code:
    <div id="gallery">
      <img src="image1.jpg">
      <img src="image2.jpg">
      <img src="image3.jpg">
      <!--etc-->
    </div>
    Then in your CSS:
    Code:
    #gallery {
      background: gray;
      padding: 10px;
    }
    #gallery img {
      display: block;
      border: 1px solid black;
      margin: 10px;
      float: left;
    }

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles