Re: CSS display not working (or more likely Im doing something wrong)



> You are aware that table rows are part of tables?

Yes but I would like to hide a selection of table rows within a table.
Sorry, I really should have supplied more code

> Secondly, 'nowrap' is a depricated attribute with html 4.01 (and only available
> with old transitional style html):
> <http://www.w3.org/TR/html401/struct/tables.html#adef-nowrap>
> Use a style like table.hide td { white-space:nowrap; } or something.

Unfortunetely, I have taken a job position that was filled by another
person before me. This is the code I have to work with in the mean
time. Its present throughout the entire page.

> Thirdly, rather than using a class name that describes the wanted visual
> behaviour, one should use a class name that makes sense even if the behaviour
> gets ignored or has to change in the future. So no 'hide' but rather the why it
> has to be hidden.

I'd rather stick with the name 'hide'. I can then apply it to other
elements and know that it simply hides that element (well, usually
does, lol). Anyway, thats not really too much of an issue in this case
but I appreciate the tip.

My idea:

What the final outcome will be is where you will click on a link and it
will show / hide a number of table rows within a <div> tag. The idea in
real, will be applied to a 'whats new' page where under every month
heading is a list and links of whats new on the Intranet I work on. As
mentioned previously, I am working with someones old code and it is
quite a large page (hopefully you get the idea why I am wanting to use
some space saving techniques, see working example below) so I would
like to apply this idea without having to retype the page another way
as this would be a lot of fiddly work.

Anyway, here is a simple example of a page that kinda does what I want:

http://www.martynbissett.co.uk/test/test_showhidetr.htm

As you can see, when you click the links it will show / hide the table
row below. This is the exact concept of what I am trying to achieve but
I need it to show / hide a number of rows so my solution was to nest
them within <div> tags. See below for this code:

http://www.martynbissett.co.uk/test/test_showhidediv.htm

As you will be able to see, although I have done as intended with the
<div> tags (view source), it doesnt show / hide them. I would like to
know why and how to overcome this (if possible)

Anyway, sorry about the large reply but hopefully this is enough
information. If you have made it this far in the text then your doin
well, lol.

Burnsy

.



Relevant Pages

  • Re: Blank Space at Bottom of Web?
    ... I only have "Use DIV ... tags when Positioning", and whether I enable or disable that one, I still ... Blank Space at Bottom of Web?Thanks to everyone for their comments. ... Microsoft MVP - Frontpage. ...
    (microsoft.public.frontpage.client)
  • Re: Blank Space at Bottom of Web?
    ... I don't think a refresh of the page would do anything to an improperly coded ... > FrontPage Resources, WebCircle, MS KB Quick Links, etc. ... >> OK, I got rid of all my <div> tags, and I've turned off the "Use div ... >>> generating all the tags. ...
    (microsoft.public.frontpage.client)
  • Re: Blank Space at Bottom of Web?
    ... Check tools> Page options and see if "Use div tags when centering" is checked. ... Microsoft MVP FrontPage ... Blank Space at Bottom of Web?Thanks to everyone for their comments. ...
    (microsoft.public.frontpage.client)
  • Re: dumb Question "div"
    ... >> <div> is a block level tag. ... CSS positioning). ... Both of these tags can ... >> elements, while the latter only encloses text, and only ...
    (microsoft.public.frontpage.client)
  • Re: dumb Question "div"
    ... Both of these tags can be EXTREMELY useful in building your page when using ... advanced layout methods (i.e., CSS positioning). ... Note that the former example's container (div) encloses all manner of page ...
    (microsoft.public.frontpage.client)