Results 1 to 6 of 6

Thread: A better code for this

  1. #1
    Join Date
    Dec 2006
    Location
    Texas
    Posts
    38
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default A better code for this

    Code:
    <h2 class="title">Helpful Links and Articles</h2>
    				<ul class="list">
    					<li><a href="http://www.webaperture.com">Webaperture</a>&nbsp;<a href="http://www.webaperture.com">Webaperture</a></li>
    					<li><a href="http://www.dpreview.com">DP Review</a></li>
    					<li><a href="http://www.huddletogether.com/projects/lightbox2/">Lightbox2 Technique</a></li>
    					<li><a href="images/hdr.pdf">HDR Technique</a></li>
    					<li><a href="images/batch.pdf">Photoshop Actions</a></li>
    					<li><a href="http://randsco.com/index.php/2006/04/10/photo_caption_zoom_version_3">Photozoom Technique</a></li>
    					<li><a href="http://www.flock.com/">Flock Browser</a></li>
    									</ul>
    I can make all other lines do the same and that is what I want. A double row on links. I can separate the links with a non-breaking space but that may not
    let the right side of links line up straight.


    Is there a better way to do this.


    thanks-----Jim

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    If I understand you correctly,
    Code:
    <ul class="list-column">
      <li><a href="http://www.webaperture.com">Webaperture</a></li>
      <li><a href="http://www.dpreview.com">DP Review</a></li>
      <li><a href="http://www.huddletogether.com/projects/lightbox2/">Lightbox2 Technique</a></li>
      <li><a href="images/hdr.pdf">HDR Technique</a></li>
      <li><a href="images/batch.pdf">Photoshop Actions</a></li>
      <li><a href="http://randsco.com/index.php/2006/04/10/photo_caption_zoom_version_3">Photozoom Technique</a></li>
      <li><a href="http://www.flock.com/">Flock Browser</a></li>
    </ul>
    <ul class="list-column">
      <li><a href="http://www.webaperture.com">Webaperture</a></li>
    </ul>
    Code:
    ul.list-column {
      width: 15em;
      float: left;
    }
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Dec 2006
    Location
    Texas
    Posts
    38
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default

    Hi Twey I put the code in but I still get the 1 line item in the second list-column under all the ones in the first? Suggestions

    All my css is in external. My head section has some Javascript so I put the ul.list-column above the Javascripts here

    Code:
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>Jim Bertucci Photography</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <link href="default.css" rel="stylesheet" type="text/css" />
    
    <style>
    
    ul.list-column {
      width: 15em;
      float: left;
    }
    </style>
    
    
    <script type="text/javascript" src="js/prototype.js"></script>
    <script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>
    <script type="text/javascript" src="js/lightbox.js"></script>

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Most flexibly you can do:
    Code:
    ul.list-column {
      width: 40&#37;;
      float: left;
    }
    ... but this isn't always practical.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Dec 2006
    Location
    Texas
    Posts
    38
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default

    I got it to work leaving out the second class statement.. the uneven columns and spacing must be a browser thingy as I.E displays even and other do not. Ok for now, I will play with it more. You got me in the right direction.


    Thanks


    Jim

  6. #6
    Join Date
    Dec 2006
    Location
    Texas
    Posts
    38
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default

    All is working great. Here's the final code----thanks


    Code:
    <h2 class="title">Helpful Links and Articles</h2>
    								<ul class="list-column">
      <li><a href="http://www.webaperture.com">Webaperture</a></li>
      <li><a href="http://www.dpreview.com">DP Review</a></li>
      <li><a href="http://www.huddletogether.com/projects/lightbox2/">Lightbox2 Technique</a></li>
      <li><a href="images/hdr.pdf">HDR Technique</a></li>
      
    </ul>
    <ul>
      <li><a href="images/batch.pdf">Photoshop Actions</a></li>
      <li><a href="http://randsco.com/index.php/2006/04/10/photo_caption_zoom_version_3">Photozoom Technique</a></li>
      <li><a href="http://www.flock.com/">Flock Browser</a></li>
      
    </ul>

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
  •