Forum Moderators: not2easy

Message Too Old, No Replies

fixed position like tabs

         

wceend

9:36 am on Jun 26, 2003 (gmt 0)

10+ Year Member



Hello

How can I make a fixed position lake a tab in Word with CSS?

this is what i like to do:

item1 : Lorem ipsum dolor
item 24 : Lorem ipsum

Thnks

Jonathan

BlobFisk

9:46 am on Jun 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hey wceend,

Do you mean a column like approach, where item1 is the label, and lorem ipsum is the value?

wceend

10:02 am on Jun 26, 2003 (gmt 0)

10+ Year Member



yes, but the value should be on a fixed position value on a horizontal alignment

Thanks Jonathan

BlobFisk

10:23 am on Jun 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Will the contents just be Item: Value? In this situation, there is a case to be made for using a table, as this would seem to be tabular data (as opposed to a table used for layout).

If the contents are just text, then a table might be your option as you seem to be describing tabular data.

ShawnR

10:43 am on Jun 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Another way is use a definition list:

<dl>
<dt>item1</dt> <dd>Lorem ipsum dolor</dd>
<dt>item24</dt> <dd>Lorem ipsum</dd>
</dl>

dd = definition term
dd = its definition

Shawn

wceend

10:53 am on Jun 26, 2003 (gmt 0)

10+ Year Member



So do you think this is appropriate for the use of e.g.
Author: John Petterson
Release date: februari 2, 2001

TIA Jonathan

BlobFisk

11:02 am on Jun 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yep - this is tabular data. You have a heading and a value.

I like ShawnR's idea of using definition lists, but you will need to CSS to prevent the <dd> from being a line down from the <dt>. This really would point me towards a table.

wceend

8:46 am on Jun 27, 2003 (gmt 0)

10+ Year Member



thanks! I think I go for the <table> version! Thanks for your help

Jonathan

ShawnR

11:53 am on Jun 27, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'd agree, the table is probably the better way.