Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Software > Adobe Software > Dreamweaver

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-29-2008, 04:35 PM
cdoyle
 
Posts: n/a
2 column UL

I've been searching google, for ways to make 2 lists appear side by side on my
page.

I have a content area in my page that is 415px in width.

it would look something like this. ignore the '.''s I don't want those in my
page :)

Some text up here.....
List 1.............List 2
Item 1............Item 2

Then some more text would go down here.


I've tried the method posted here
http://alistapart.com/articles/layeredfudge

It just doesn't seem to work when I make the div 415px.
The text under the lists, moves up for some reason it all just becomes a big
mess. I tried messing with the margins and padding, but just woulnd't make a
difference.

Is there a better way to have 2 lists side by side?

I'm about ready to just put a 2 cell table in my page and put a list in each
cell.
I really don't want to do that, but that seems to work. :(

Reply With Quote
  #2 (permalink)  
Old 09-29-2008, 04:59 PM
Osgood
 
Posts: n/a
Re: 2 column UL

Use a definition list:

<dl id="myList">
<dt>2 days</dt>
<dd>from £135</dd>
<dt>4 days</dt>
<dd>from £235</dd>
<dt>6 days</dt>
<dd>from £335</dd>
<dt>8 days</dt>
<dd>from £435</dd>
</dl>


and some css to style it:

#myList {
margin: 0;
padding: 0;
width: 415px;
}
#myList dt {
margin: 0;
padding: 0;
float: left;
width: 200px;
}
#myList dd {
margin: 0;
padding: 0;
}




cdoyle wrote:
> I've been searching google, for ways to make 2 lists appear side by side on my
> page.
>
> I have a content area in my page that is 415px in width.
>
> it would look something like this. ignore the '.''s I don't want those in my
> page :)
>
> Some text up here.....
> List 1.............List 2
> Item 1............Item 2
>
> Then some more text would go down here.
>
>
> I've tried the method posted here
> http://alistapart.com/articles/layeredfudge
>
> It just doesn't seem to work when I make the div 415px.
> The text under the lists, moves up for some reason it all just becomes a big
> mess. I tried messing with the margins and padding, but just woulnd't make a
> difference.
>
> Is there a better way to have 2 lists side by side?
>
> I'm about ready to just put a 2 cell table in my page and put a list in each
> cell.
> I really don't want to do that, but that seems to work. :(
>

Reply With Quote
  #3 (permalink)  
Old 09-29-2008, 05:31 PM
Walt F. Schaefer
 
Posts: n/a
Re: 2 column UL

Very clever Osgood. I like that. :-)

--

Walt


"Osgood" <notavailable@thisaddress.com> wrote in message
news:gbqu0r$kkn$1@forums.macromedia.com...
> Use a definition list:
>
> <dl id="myList">
> <dt>2 days</dt>
> <dd>from £135</dd>
> <dt>4 days</dt>
> <dd>from £235</dd>
> <dt>6 days</dt>
> <dd>from £335</dd>
> <dt>8 days</dt>
> <dd>from £435</dd>
> </dl>
>
>
> and some css to style it:
>
> #myList {
> margin: 0;
> padding: 0;
> width: 415px;
> }
> #myList dt {
> margin: 0;
> padding: 0;
> float: left;
> width: 200px;
> }
> #myList dd {
> margin: 0;
> padding: 0;
> }
>
>
>
>
> cdoyle wrote:
>> I've been searching google, for ways to make 2 lists appear side by side
>> on my page.
>>
>> I have a content area in my page that is 415px in width.
>>
>> it would look something like this. ignore the '.''s I don't want those
>> in my page :)
>>
>> Some text up here.....
>> List 1.............List 2
>> Item 1............Item 2
>>
>> Then some more text would go down here.
>>
>>
>> I've tried the method posted here
>> http://alistapart.com/articles/layeredfudge
>>
>> It just doesn't seem to work when I make the div 415px.
>> The text under the lists, moves up for some reason it all just becomes a
>> big mess. I tried messing with the margins and padding, but just
>> woulnd't make a difference.
>>
>> Is there a better way to have 2 lists side by side?
>>
>> I'm about ready to just put a 2 cell table in my page and put a list in
>> each cell.
>> I really don't want to do that, but that seems to work. :(
>>



Reply With Quote
  #4 (permalink)  
Old 09-29-2008, 05:55 PM
Osgood
 
Posts: n/a
Re: 2 column UL

Walt F. Schaefer wrote:
> Very clever Osgood. I like that. :-)
>



Hi Walt,

It can come in handy sometimes in certain situations. The problem is
trying to remember it all when needed.
Reply With Quote
  #5 (permalink)  
Old 09-29-2008, 06:52 PM
Walt F. Schaefer
 
Posts: n/a
Re: 2 column UL

My problem is trying to remember any of it anytime. ;-)

Seriously, I think it also works semantically, albeit a bit of a stretch.
Per your example the text in the left column names the item and the right
column text provides relevant info. Term > Definition

--

Walt


"Osgood" <notavailable@thisaddress.com> wrote in message
news:gbr1ak$osu$1@forums.macromedia.com...
> Walt F. Schaefer wrote:
>> Very clever Osgood. I like that. :-)
>>

>
>
> Hi Walt,
>
> It can come in handy sometimes in certain situations. The problem is
> trying to remember it all when needed.



Reply With Quote
  #6 (permalink)  
Old 09-29-2008, 08:12 PM
Sean DeMerchant
 
Posts: n/a
Re: 2 column UL

Just use a table with two td elements side by side each of which contains a list. Set the vertical-align to top and then you can have the lists be of different lengths.
Reply With Quote
  #7 (permalink)  
Old 09-30-2008, 03:42 PM
cdoyle
 
Posts: n/a
Re: 2 column UL

[q]Originally posted by: Sean DeMerchant
Just use a table with two td elements side by side each of which contains a
list. Set the vertical-align to top and then you can have the lists be of
different lengths.[/q]

This is what I ended up doing, it seemed to work the best in the my page and
was easy to setup.

Thanks to everyone who replied.


Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Software > Adobe Software > Dreamweaver


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:20 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Loans | Per Insurance | Learn Spanish | Remortgages | eHarmony Promotional Code



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114