I know that if I want all my table entries to be of height 25, I can put
this in my style file:
table tr td {height:25}
But what if I want the above to only apply to a particular table ? How
can I name the above style and use it selectively in only certain
tables?
And what do I put in the table to invoke it ?
I would imagine it's something like this :
.myTableStyle {
table tr td {height:25}
}
and then
<table class=myTableStyle>
but I doubt it's that simple...
/Eric 13 2584
Eric Osman wrote: I would imagine it's something like this :
.myTableStyle { table tr td {height:25} }
and then
<table class=myTableStyle>
but I doubt it's that simple...
It is nearly that simple. How about :
table.MyTableStyle, td.MyTableStyle
{
height:25px;
}
<table class=MyTableStyle>
AFAIK you don't have to define a style for tr. And you do have to specify
25*something*.
--
Groet,
Barbara http://home.wanadoo.nl/b.de.zoete/index.html
In article <3F**************@rcn.com>, Eric Osman wrote: I know that if I want all my table entries to be of height 25, I can put this in my style file:
table tr td {height:25}
25cm? 25in? 25horses? You need unit in CSS. Exeption is zero, it don't
need unit.
But what if I want the above to only apply to a particular table?
I would imagine it's something like this :
.myTableStyle { table tr td {height:25} }
but I doubt it's that simple...
No, it is much simpler:
..myTableStyle table tr td {height:2em;}
And
..myTableStyle td {height:2em;}
is about same.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.
In article <bf************@ID-52872.news.uni-berlin.de>, Barbara de Zoete
wrote: table.MyTableStyle, td.MyTableStyle { height:25px; }
<table class=MyTableStyle>
That don't work. It makes the table 25px height, and all td's with class
MyTableStyle. Not td's inside table that has class MyTableStyle
Both of you, learn this: http://www.w3.org/TR/CSS2/selector.html
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.
In article <MP************************@news.cis.dfn.de>, Lauri Raittila
wrote: No, it is much simpler: .myTableStyle table tr td {height:2em;}
Should be table.myTableStyle
And
.myTableStyle td {height:2em;}
This was correct.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.
In article <bf************@ID-52872.news.uni-berlin.de>, Barbara de Zoete
wrote: Lauri Raittila wrote: In article <bf************@ID-52872.news.uni-berlin.de>, Barbara de Zoete wrote: table.MyTableStyle, td.MyTableStyle { height:25px; }
<table class=MyTableStyle> That don't work. It makes the table 25px height, and all td's with class MyTableStyle. Not td's inside table that has class MyTableStyle
Both of you, learn this: http://www.w3.org/TR/CSS2/selector.html
Thank you for correcting that typo.
You accidentally typed table.MyTableStyle, td.MyTableStyle
when you meaned table.MyTableStyle td ?
It was no typo, it was error in thinking. Like mine on my first post...
And for your kind remark ;-)
When you do make mistake, people do think you don't know much. Maybe it
shouldn't be thatway. I just cursed it yeasterday. Or maybe I just
shouldn't make mistakes. http://home.wanadoo.nl/b.de.zoete/index.html
BTW, have you looked you page with new Opera? It seems totally broken.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.
"Lauri Raittila" <la***@raittila.cjb.net> wrote in message
news:MP************************@news.cis.dfn.de... In article <bf************@ID-52872.news.uni-berlin.de>, Barbara de Zoete
When you do make mistake, people do think you don't know much. Maybe it shouldn't be thatway. I just cursed it yeasterday. Or maybe I just shouldn't make mistakes.
http://home.wanadoo.nl/b.de.zoete/index.html
BTW, have you looked you page with new Opera? It seems totally broken.
The dtd puts it in quirk mode!
David
Lauri Raittila wrote: In article <bf************@ID-52872.news.uni-berlin.de>, Barbara de Zoete wrote: Lauri Raittila wrote: In article <bf************@ID-52872.news.uni-berlin.de>, Barbara de Zoete wrote: table.MyTableStyle, td.MyTableStyle { height:25px; }
<table class=MyTableStyle>
That don't work. It makes the table 25px height, and all td's with class MyTableStyle. Not td's inside table that has class MyTableStyle
Both of you, learn this: http://www.w3.org/TR/CSS2/selector.html Thank you for correcting that typo.
You accidentally typed table.MyTableStyle, td.MyTableStyle when you meaned table.MyTableStyle td ?
No, not this part. Here I meant what I typed.
But the <table class="..> part. Should have read <td class="..>. Fingers
faster than mind.
It was no typo, it was error in thinking. Like mine on my first post...
When you do make mistake, people do think you don't know much.
I don't, actually, know that much. My page currently running is the first
since like 12-13 years or so. Sometimes I like to think I do now something
:-) and than sometimes go wrong. Like with the table.MyTableStyle td {
[...] }.
Maybe it shouldn't be thatway. I just cursed it yeasterday. Or maybe I just shouldn't make mistakes.
Same here. http://home.wanadoo.nl/b.de.zoete/index.html
BTW, have you looked you page with new Opera? It seems totally broken.
:-? I've tested it in IE6, NS7 and OP7 and had a newsgroup full of critics
look at it. Nobody reported any problems with the end-product (except for
older browsers, not supporting CSS2; not fixed yet). Just looked at it in
OP7 (running Win XP Pro). Looks fine to me. Screenshot?
Know about Quirks-mode. Just don't feel like correcting it all right now.
Maybe in a more rainy season.
--
Groet,
Barbara http://home.wanadoo.nl/b.de.zoete/html/vliegen.html
Thanks for all the responses.
Yes, I do use a book for css. It's "HTML & XHTML" by Chuck Musciano and
Bill Kennedy published by O'Reilly.
However, the book doesn't explain all the different kinds of css I can
think of needing, and the css syntax doesn't always have enough rhyme or
reason that new ideas can be always extrapolated.
I didn't leave out the units on purpose. Sorry for that inadvertant
subterfuge.
Also, note that my goal is to not have to put something again and again
on each td. hence having to say <td class=...> is no more useful to me
than saying <td height=...> .
Anyway, thanks to all your responses, I'm now using the following solution.
In my css file:
.headingsTable td {height:2em}
And in my html, in the tables in which I want that particular spacing:
<table class=headingsTable ...>
/Eric
In article <bf************@ID-52872.news.uni-berlin.de>, Barbara de Zoete
wrote: BTW, have you looked you page with new Opera? It seems totally broken.
:-? I've tested it in IE6, NS7 and OP7 and had a newsgroup full of critics look at it. Nobody reported any problems with the end-product (except for older browsers, not supporting CSS2; not fixed yet). Just looked at it in OP7 (running Win XP Pro). Looks fine to me. Screenshot?
I was mistaken it is not totally broken, but uses tables. I don't like
widths on tables, which seems to break your site: http://www.student.oulu.fi/~laurirai...creencap10.png
Whitout userstyle is looks as intended.
Anyway, someone might understand why I don't like table layouts.
(_usually_ that userstyle makes table layout look better, this is only
third exeption in 4 months I have seen.)
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.
Lauri Raittila wrote: In article <bf************@ID-52872.news.uni-berlin.de>, Barbara de Zoete wrote:
BTW, have you looked you page with new Opera? It seems totally broken. :-? I've tested it in IE6, NS7 and OP7 and had a newsgroup full of critics look at it. Nobody reported any problems with the end-product (except for older browsers, not supporting CSS2; not fixed yet). Just looked at it in OP7 (running Win XP Pro). Looks fine to me. Screenshot?
I was mistaken it is not totally broken, but uses tables. I don't like widths on tables, which seems to break your site: http://www.student.oulu.fi/~laurirai...creencap10.png
Thank you for this! Ugly mess it is. Hope not too many people use Opera with
userstyle ;-)
Whitout userstyle is looks as intended.
Anyway, someone might understand why I don't like table layouts. (_usually_ that userstyle makes table layout look better, this is only third exeption in 4 months I have seen.)
Don't know if that's good or bad :-)
I'm still learning how to use divs to put elements in the right place on the
page. In this case (with both a vertical menu to the left of the text, which
is in divs, and a horizontal one 'embedded' in de body of the text) I
couldn't get it right. So eventually I gave up and put the horizontal menu
in a table.
A quick thought. Would it work to put the elements of the horizontal menu in
a 'container' div that has text-align:center (maybe specify a min-width) and
then just put the rest of the elements inside the container div as is? Or am
I missing out on something essential?
--
Groet,
Barbara http://home.wanadoo.nl/b.de.zoete/index.html
In article <bf************@ID-52872.news.uni-berlin.de>, Barbara de Zoete
wrote: I was mistaken it is not totally broken, but uses tables. I don't like widths on tables, which seems to break your site: http://www.student.oulu.fi/~laurirai...creencap10.png Thank you for this! Ugly mess it is. Hope not too many people use Opera with userstyle ;-)
It's not Opera's it's my own. Available for public though so someone else
may use it: http://www.student.oulu.fi/~laurirai...styles/Oma.css
A quick thought. Would it work to put the elements of the horizontal menu in a 'container' div that has text-align:center (maybe specify a min-width) and then just put the rest of the elements inside the container div as is? Or am I missing out on something essential?
I don't know what you are after, but IMHO it would be better than current
way.
-- Groet, Barbara
http://home.wanadoo.nl/b.de.zoete/index.html
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.
>Lauri Raittila wrote: In article <bf************@ID-52872.news.uni-berlin.de>, Barbara de Zoete wrote: A quick thought. Would it work to put the elements of the horizontal menu in a 'container' div that has text-align:center (maybe specify a min-width) and then just put the rest of the elements inside the container div as is? Or am I missing out on something essential?
I don't know what you are after, but IMHO it would be better than current way.
Hmm, tried a lot of different things now. None of them seem to do exactly
what I want (except for in IE6, but what else is new). Either NS7 or OP7
makes a mess of anything I try.
I think I keep the pages as they are right now. Thanks for your input,
though. Keeps me aware that *never* all gets displayed to everyone as I
intended it to and sometimes the result doesn't even come close.
Thank you,
--
Groet,
Barbara http://home.wanadoo.nl/b.de.zoete/index.html
I'm trying to make there be 2 inches margin before each row. The
"top-margin" style didn't work at all.
Here we see me trying "padding-top" and it is producing way more than 2
inches. Why ????
Actually, I really would rather not have to specify the class on each
row. I'd rather somehow specify it once when I define the table. How
can I do that ?
/Eric
<html><head><style>
..tc {padding-top:2in}
</style></head>
<body>
<table>
<tr><td class=tc>first row
<tr><td class=tc>second row
<tr><td class=tc>third row
</table>
</html> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Toby Austin |
last post by:
I'm trying to replace <table>s with <div>s as much as possible.
However, I can't figure out how to do the following…
<table>
<tr>
<td valign="top" width="100%">some data that will...
|
by: WindAndWaves |
last post by:
Hi Gurus
I was wondering if you can send me in the right direction:
I have a table with about 300 rows. I want to make all of them invisible
and when a user enters a code in a form then make...
|
by: javaguy |
last post by:
I have a table I hide show/hide through a pair of divs. The show/hide
part works fine in both Mozilla and MSIE. When switching between the
hide and show versions the Mozilla browser keeps them in...
|
by: chris |
last post by:
I've used JavaScript DOM scripting to create a table element and alter
its opacity. Bizarrely, the contents of the table appear to vanish when
the opacity changes.
One important note is that I...
|
by: jjturon |
last post by:
Can anyone help me??
I am trying to pass a Select Query variable to a table using Dlookup
and return the value to same select query but to another field.
Ex.
SalesManID ...
|
by: Junior |
last post by:
Hi All,
I haven't got a response for this question lately and i really need to
get this done ASAP.
I have a .aspx page that has table two column four rows on it.
1. How do i use codebehind C#...
|
by: acecraig100 |
last post by:
I am fairly new to Javascript. I have a form that users fill out to
enter an animal to exhibit at a fair. Because we have no way of
knowing, how many animals a user may enter, I created a table...
|
by: cbradio |
last post by:
Hi, I am having trouble developing a form in a restricted environment. My sample code is found below my message (sorry I don't have a URL). Basically, without a doctype, the form displays properly...
|
by: PYG |
last post by:
Hi everybody
I have a simple question :
If i use this code :
<body style="font-size:24px;color:blue;">
Text in body
<table>
<tr><td>
Text in table
|
by: dmjpro |
last post by:
I think iText commonly used to create or manipulate PDF document in Java.
So finally i decided to throw a question over here. For two days i am struggling.
I encountered two types of table .....
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: Aftab Ahmad |
last post by:
Hello Experts!
I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
|
by: Aftab Ahmad |
last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below.
Dim IE As Object
Set IE =...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: marcoviolo |
last post by:
Dear all,
I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
| |