Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Regular Coder Graft-Creative's Avatar
    Join Date
    Aug 2004
    Location
    Web Designer - North East Lancashire U.K.
    Posts
    842
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Definition List problems

    I have a definition list on this page http://www.kelrick.com/local-information.asp

    Looks ok? But what I'd really like to do is have the dds lining up flush left, so in effect I'd get something looking like this:

    Blahblah: Description
    Blahblah: Description
    Blahblah: Description
    Blahblah: Description

    Hope that makes sense?

    Any help greatly appreciated

    P.s. Please don't comment on design - I pretty much had my hands tied on this one

    kind Regards,

    Gary

  • #2
    Senior Coder
    Join Date
    Jan 2005
    Location
    Memphis, TN
    Posts
    1,788
    Thanks
    8
    Thanked 131 Times in 129 Posts
    are you going for something like this?

    Code:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Language" content="en" />
    <style type="text/css">
    dt {
    float: left;
    margin-right: 1em;
    width: 180px;
    }
    </style>
    </head>
    <body>
    <dl id="useful-links">
    <dt>Wigan Council</dt>
    <dd><a href="www.wiganmbc.gov.uk">www.wiganmbc.gov.uk</a></dd> 
    <dt>Local Information</dt>
    <dd><a href="www.upmystreet.com">www.upmystreet.com</a></dd>
    <dt>Route Planner</dt>
    <dd><a href="www.greenflag.co.uk">www.greenflag.co.uk</a></dd> 
    <dt>Database of Local Schools</dt>
    <dd><a href="www.schoolswebdirectory.co.uk">www.schoolswebdirectory.co.uk</a></dd> 
    <dt>School Inspection Reports</dt>
    <dd><a hrefwww.ofsted.gov.uk>www.ofsted.gov.uk</a></dd>
    <dt>Hospital</dt>
    <dd><a href="www.wiganleigh.nhs.uk">www.wiganleigh.nhs.uk</a></dd>
    <dt>General Information</dt>
    <dd><a href="www.touchwigan.com">ww.touchwigan.com</a></dd>
    <dt>Businesses</dt>
    <dd><a href="www.yell.com & www.thomweb.co.uk">www.yell.com & www.thomweb.co.uk</a></dd>
    </dl>
    </body>
    </html>
    Stop making things so hard on yourself.
    i is tugbucket :: help raise tugburg :: Whitehaven Kiwanis

  • #3
    Regular Coder Graft-Creative's Avatar
    Join Date
    Aug 2004
    Location
    Web Designer - North East Lancashire U.K.
    Posts
    842
    Thanks
    0
    Thanked 0 Times in 0 Posts
    A - that is just the job! works perfectly

    Genius, genius!

    Thanks mate,

    Gary

  • #4
    Senior Coder
    Join Date
    Jan 2005
    Location
    Memphis, TN
    Posts
    1,788
    Thanks
    8
    Thanked 131 Times in 129 Posts
    G - no problem. if it works for you, it works for me
    Stop making things so hard on yourself.
    i is tugbucket :: help raise tugburg :: Whitehaven Kiwanis

  • #5
    Regular Coder
    Join Date
    Nov 2004
    Location
    The Netherlands
    Posts
    551
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Please get off the XML prolog. It throws IE into quirks mode, wich you seriously don't want.
    CATdude about IE6: "All your box-model are belong to us"

  • #6
    Regular Coder Graft-Creative's Avatar
    Join Date
    Aug 2004
    Location
    Web Designer - North East Lancashire U.K.
    Posts
    842
    Thanks
    0
    Thanked 0 Times in 0 Posts
    xml prologue: Oh yeah, fair point - forgot about that, thanks mate

    Gary

  • #7
    Regular Coder
    Join Date
    Jul 2005
    Location
    Guildford, UK
    Posts
    109
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you missed the =" " from the ofsted link.... A-


  •  

    Posting Permissions

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