![]() | |
![]() |
| | Thread Tools | Display Modes |
#31
| |||
| |||
|
|
With regards to your <div class="wrapper"> suggestion, I get the same problem with it as with Jonathan's "box" - I need the simulated "document page" to have a fixed width and I can't see any way to achieve that with your method - is it possible? |
#32
| |||
| |||
|
|
First you should add a proper document type declaration. Without one the page will be rendered in quirks mode in most browsers, where all kinds of strange things may happen. |
|
Then you could try to apply the 'list-style' property to the 'li' elements instead of the 'ul'. It should work both ways since 'list- style' is inherited, but you never know what IE makes of it ... |
|
Additionally you don't need both 'list-style-type' and 'list-style' - the second is a just shorthand property and already contains/sets the first one. |
#33
| |||
| |||
|
|
In general, if lists do not turn out as you like, why not use a table? |
|
style type='text/css' .t td.l {text-align:right; padding:0 5px 5px 15px; font-weight:bold;} /style table class=t tr><td class=l>1.<td>Blah blah tr><td class=l>100.<td>Blah blah tr><td class=l>7.<td>Blah blah tr><td class=l>12.<td>Blah blah /table |
#34
| |||
| |||
|
|
Scripsit Evertjan.: In general, if lists do not turn out as you like, why not use a table? Or if you really have a table, why would you use list markup for it? style type='text/css' .t td.l {text-align:right; padding:0 5px 5px 15px; font-weight:bold;} /style table class=t tr><td class=l>1.<td>Blah blah tr><td class=l>100.<td>Blah blah tr><td class=l>7.<td>Blah blah tr><td class=l>12.<td>Blah blah /table This really looks like a table, consisting of pairs (rows) of numbers and pieces of text. List markup would be less natural, and why would you use CSS to create such a strange numbering? Besides, CSS is currently ineffective in such issues. Using HTML, with <td value="...">, would work, for some values of "work", but if the numbers are nowhere near to consecutive, this really doesn't look like a numbered list. It would be slightly more logical to use <th> markup for the cells containing numbers, since they presumable act as row headings of a kind. Then you would not need the class=l attributes. -- Jukka K. Korpela ("Yucca")http://www.cs.tut.fi/~jkorpela/ |
#35
| |||
| |||
|
|
Dave Rado wrote on 27 dec 2007 in comp.infosystems.www.authoring.stylesheets: With regards to your <div class="wrapper"> suggestion, I get the same problem with it as with Jonathan's "box" - I need the simulated "document page" to have a fixed width and I can't see any way to achieve that with your method - is it possible? In general, if lists do not turn out as you like, why not use a table? style type='text/css' .t td.l {text-align:right; padding:0 5px 5px 15px; font-weight:bold;} /style table class=t tr><td class=l>1.<td>Blah blah tr><td class=l>100.<td>Blah blah tr><td class=l>7.<td>Blah blah tr><td class=l>12.<td>Blah blah /table -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress) |
#36
| ||||
| ||||
|
|
On 27 Dec, 09:04, "Evertjan." <exjxw.hannivo... (AT) interxnl (DOT) net> wrote: Dave Rado wrote on 27 dec 2007 in comp.infosystems.www.authoring.stylesheets: With regards to your <div class="wrapper"> suggestion, I get the same problem with it as with Jonathan's "box" - I need the simulated "document page" to have a fixed width and I can't see any way to achieve that with your method - is it possible? In general, if lists do not turn out as you like, why not use a table? style type='text/css' .t td.l {text-align:right; padding:0 5px 5px 15px; font-weight:bold;} /style table class=t tr><td class=l>1.<td>Blah blah tr><td class=l>100.<td>Blah blah tr><td class=l>7.<td>Blah blah tr><td class=l>12.<td>Blah blah /table |
|
Hi Evertjan I'm not sure where those numbers came from - I always use sequential numbering in my lists (although a complication is that I often use outline numbering; and another complication is that I prefer left- aligned to right-aligned numbering, which I've posted about in a separate thread). |
|
The reason for sometimes wanting a list to start at something other than 1, which I posted about originally, was when a list is a continuation from a previous page - but VK suggested using <ol start="number"> for that situation, which seems to work well. I have always used tables for all my lists up to now, but I'm trying to see whether I can use css instead. |
|
I think you may be misreading what I wrote to Berg - the section of my post that you quoted was regarding his suggestion not to use a table for the design of the simulated "document page" but to use a div wrapper instead. |
#37
| |||
| |||
|
|
Very clever, but my simulated "document page" needs to have a fixed width, whereas your "box" resizes if you resize your window. Is there a way of doing it without tables that allows you to make the "box" 700 pixels wide regardless of the window size (and for it to still be horizontally centred on the page)? |
|
Also on some pages I need to be able to put things in the grey area above the simulated "document page", which is easy using tables (the "page" has a grey row above the white bit) - but can this be done easilywith your method? |
#38
| |||
| |||
|
|
I have always used tables for all my lists up to now, but I'm trying to see whether I can use css instead. |
#39
| |||
| |||
|
|
Dave Rado wrote: Very clever, but my simulated "document page" needs to have a fixed width, whereas your "box" resizes if you resize your window. Is there a way of doing it without tables that allows you to make the "box" 700 pixels wide regardless of the window size (and for it to still be horizontally centred on the page)? Yes, as stated by in your multi-posted message in comp.infosystems.www.authoring.htmlby John http://message-id.net/<47735ebf$... (AT) news (DOT) bluewin.ch Also on some pages I need to be able to put things in the grey area above the simulated "document page", which is easy using tables (the "page" has a grey row above the white bit) - but can this be done easilywith your method? But as I pointed out there, a fixed 700px page makes things difficult for small screens... -- Take care, Jonathan ------------------- LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com |
#40
| |||
| |||
|
|
All graphics of any significant width also make life difficult for small screens - do you want to ban graphics from the web as well? Some content is appropropriate for people using small screens, and other content is not. You can't cater for everyone all of the time. Life is full of compromises. |
![]() |
| Thread Tools | |
| Display Modes | |
| |