HighDots Forums  

col element in table not working

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss col element in table not working in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #21  
Old   
Haines Brown
 
Posts: n/a

Default Re: col element in table not working - 12-18-2003 , 08:47 AM






Neal,

Somewhat OT, but the thought occured to me.

"Neal" <neal (AT) spamrcn (DOT) com> writes:

Quote:
li.one, li.two {
list-style-image: url(arrow.png);
padding: 1em;
}

li.two {
padding-top: 1.4em;
padding-bottom: 1.4em;
}

ul
li class="one"><a href="doc-a.html">child a</a></li
li class="one"><a href="doc-b.html">child b</a></li
li class="two"><a href="doc-1.html">child 1</a></li
/ul
What would you do if you needed to name "arrow.png" in order to
specify its size or relative position?

--
Haines Brown
brownh (AT) hartford-hwp (DOT) com
kb1grm (AT) arrl (DOT) net
www.hartford-hwp.com



Reply With Quote
  #22  
Old   
Neal
 
Posts: n/a

Default Re: col element in table not working - 12-19-2003 , 10:12 AM







"Haines Brown" <brownh (AT) teufel (DOT) hartford-hwp.com> wrote

Quote:
What would you do if you needed to name "arrow.png" in order to
specify its size or relative position?
More classes pointing to other sizes, perhaps.




Reply With Quote
  #23  
Old   
Haines Brown
 
Posts: n/a

Default list marker attributes (was: col element in table not working) - 12-21-2003 , 06:12 AM



"Neal" <neal (AT) spamrcn (DOT) com> writes:

Quote:
"Haines Brown" <brownh (AT) teufel (DOT) hartford-hwp.com> wrote in message
news:87brq6b2ws.fsf (AT) teufel (DOT) hartford-hwp.com...
What would you do if you needed to name "arrow.png" in order to
specify its size or relative position?

More classes pointing to other sizes, perhaps.
?? My intent was to ask how such a class would be applied to the list
item marker. Here's a simple example:


li.list {
list-style-image: url(arrow.png);
padding: 1em;
}

<ul>
<li class="list"><a href="doc-a.html">document a</a></li>
<li class="list"><a href="doc-b.html">document b</a></li>
</ul>

Now, suppose I want to shift the relative position of marker
"arrow.png" in relation to the lines of text in the list, such as
shifting it up a bit? Or perhaps I might want to reduce its size. I
assume that to do this, "arrow.png" must somehow be assigned a class
or ID, but I don't see how.

This is why I created an artificial "list" by using <br /> to separate
ordinary lines that began with a graphic to serve as markers for the
lines.

--
Haines Brown




Reply With Quote
  #24  
Old   
Neal
 
Posts: n/a

Default Re: list marker attributes (was: col element in table not working) - 12-21-2003 , 01:38 PM




"Haines Brown" <brownh (AT) teufel (DOT) hartford-hwp.com> wrote

Quote:
?? My intent was to ask how such a class would be applied to the list
item marker. Here's a simple example:


li.list {
list-style-image: url(arrow.png);
padding: 1em;
}

ul
li class="list"><a href="doc-a.html">document a</a></li
li class="list"><a href="doc-b.html">document b</a></li
/ul

Now, suppose I want to shift the relative position of marker
"arrow.png" in relation to the lines of text in the list, such as
shifting it up a bit? Or perhaps I might want to reduce its size. I
assume that to do this, "arrow.png" must somehow be assigned a class
or ID, but I don't see how.
Easiest solution (for me anyway) is to recreate the bullet graphic a little
higher or lower (higharrow.png, lowarrow.png, or what have you) and create a
class for that one.

See, basically if you want to have the item look different in the viewport,
it must therefore have a different meaning in the context of the page. So
you want to class it differently anyway. Decide what different types of
items you want in the list. Assign class based on that, then define the
class.

Why do you want different bullet styles anyway? What's the meaning you're
trying to send to the user by doing this?




Reply With Quote
  #25  
Old   
Haines Brown
 
Posts: n/a

Default Re: list marker attributes (was: col element in table not working) - 12-22-2003 , 04:57 AM



I think you are telling me that there's no way to assign a class or id
to a list marker, but rather I should redesign the graphic so that it
has the desired attributes.

You ask why I would want to mess with the qualities of the marker
anyway. Well, the reason is that I needed to adjust the height of the
marker in relation to the line it marks. I find that when I try to
change the relative position of the line, it includes the marker. So I
have to so something really ugly:

li {
list-style-image: url(arrow.png);
height: 1.4em;
}
.listLine {
position: relative;
top: -0.3em;
}

<ul>
<li><a href="doc-a.html">
<span class="listLine">child a</span></a>
</li>
<li><a href="doc-b.html">
<span class="listLine">child b</span></a>
</li>
</ul>

I don't know that this is any improvement over my original approach,
which was simply to start new lines in a paragraph with a <br /> and
an image to consruct the appearance of an HTML list (I used the height
attribute to bring the lines closer together than 1 em, so don't know
why the value 1.4 works in practice.)

Here was my original approach:

<p class="links">
<img class="arrow" src="arrow.png" />
<a href="doc-a.html">child a</a>
<br />
...

--
Haines Brown
brownh (AT) hartford-hwp (DOT) com
kb1grm (AT) arrl (DOT) net
www.hartford-hwp.com


Reply With Quote
  #26  
Old   
Neal
 
Posts: n/a

Default Re: list marker attributes (was: col element in table not working) - 12-22-2003 , 01:30 PM




"Haines Brown" <brownh (AT) teufel (DOT) hartford-hwp.com> wrote

Quote:
I think you are telling me that there's no way to assign a class or id
to a list marker, but rather I should redesign the graphic so that it
has the desired attributes.
Well, what I'm trying to say is that the bullets on lists are supposed to
function in a particular way. The only sure and meaningful way to defeat
that is to specify a different bullet.

Quote:
You ask why I would want to mess with the qualities of the marker
anyway. Well, the reason is that I needed to adjust the height of the
marker in relation to the line it marks.
My next question: why do you need to change the relative position of a line?
What I'm driving at is there must be some meaning to the user as to why
you're doing this. What's the context in terms of the content that's being
presented?

Quote:
I find that when I try to
change the relative position of the line, it includes the marker.
? In IE and Opera list items have their positions changed but the bullet
stays put. As some of your list items need to be positioned high, and some
regular, do this.

li.normal {
list-style-image: url(arrow.png);
height: 1.4em;
}
li.special {
position: relative;
top: -0.3em;
list-style-image: url(higharrow.png);
}

and the image matches. We're talking bullets here, not terribly wasteful of
bandwidth. You could have a dozen different ones and it would be noticed
only on the poorest of connections.

Quote:
So I
have to so something really ugly:
It is a little ugly, but you are trying to do something totally

Quote:
I don't know that this is any improvement over my original approach,
which was simply to start new lines in a paragraph with a <br /> and
an image to consruct the appearance of an HTML list (I used the height
attribute to bring the lines closer together than 1 em, so don't know
why the value 1.4 works in practice.)
The improvement is that this actually is a list. If you can mark up your
text as what it actually is, and not resort to HTML witchcraft to achieve a
visual effect which should be done in the CSS, it's an improvement. And
since there's some contextual purpose for adjusting the height of a line AND
its bullet, and since a bullet is not moved with its text in the user agent,
the only option to preserve meaningful markup and create the desired visual
effect is to supply a bullet that is pre-adjusted to your visual effect. The
only ugly part is that you need to design a class for each separate type of
position modfication you plan to do - but since each element is being
positioned for a basic contextual reason, it's actually not ugly, it's
meaningful and worthwhile.

If you're not aiming toward visual layout to enhance meaning, but simply
taking a Dadaist approach to the page layout without respect to matching
design to communication of the text, then I cannot help you.

Quote:
Here was my original approach:

p class="links"
img class="arrow" src="arrow.png" /
a href="doc-a.html">child a</a
br /



Reply With Quote
Reply




Thread Tools
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 On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.