Click here to Skip to main content
16,012,223 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: redirecting a user based on combo-box selection Pin
Paul Watson2-Sep-02 5:59
sitebuilderPaul Watson2-Sep-02 5:59 
GeneralDHTML collapsable tables Pin
benjymous1-Sep-02 23:54
benjymous1-Sep-02 23:54 
GeneralRe: DHTML collapsable tables Pin
Paul Watson2-Sep-02 5:44
sitebuilderPaul Watson2-Sep-02 5:44 
GeneralRe: DHTML collapsable tables Pin
benjymous2-Sep-02 6:23
benjymous2-Sep-02 6:23 
GeneralRe: DHTML collapsable tables Pin
Anonymous3-Sep-02 1:59
Anonymous3-Sep-02 1:59 
GeneralRe: DHTML collapsable tables Pin
Anonymous3-Sep-02 2:02
Anonymous3-Sep-02 2:02 
GeneralRe: DHTML collapsable tables Pin
alex.barylski3-Sep-02 23:20
alex.barylski3-Sep-02 23:20 
GeneralRe: DHTML collapsable tables Pin
Paul Watson3-Sep-02 23:34
sitebuilderPaul Watson3-Sep-02 23:34 
Hockey wrote:
Interesting...is this supported NS6+ also...? Or would you have to use visibility property for

First off you cannot use (as far as I know) the document.all method of getting the element in Netscape 6+ (Mozilla.) Instead one needs to use the getElementById method, which IE supports as well (I should have used that method rather than document.all but I was feeling lazy Roll eyes | :rolleyes: .)

display is as far as I know the preferred way of hiding and displaying elements when you want the document to reflow on change. If you use visibility then the document should not reflow as effectively the element is still "there", just not visible. So if you want to hide an element but not have the other elements reflow to fill up the empty space then use visibility. If you want other elements to reflow though, then use display.

For display you have three possible values. block, inline and none. They do pretty much what they say. e.g. By default a span element has a display of inline meaning it will not cause line breaks and will generally flow with the text. By default div elements though have a display of block meaning it will cause line breaks and not flow with the text. You could if you want set the div display attribute to inline and override that default behavouir, making the div flow with the text. This is useful for form elements where you don't want the form to cause any line breaks.

And yes display is supported in NS6+ (Mozilla.) It is part of the W3C CSS standard.

This concludes Paul on CSS 101 Chapter 6... Roll eyes | :rolleyes:

regards,
Paul Watson
Bluegrass
Cape Town, South Africa

Simon Walton wrote:
"You come across a lot of people who call themselves realists, when they are actually pessimists attempting to look intelligent."

GeneralCDONTS sends to Badmail Pin
Megan Forbes31-Aug-02 6:44
Megan Forbes31-Aug-02 6:44 
GeneralRe: CDONTS sends to Badmail Pin
TigerNinja_3-Sep-02 7:58
TigerNinja_3-Sep-02 7:58 
GeneralWeird Javascript issue Pin
Jamie Nordmeyer30-Aug-02 11:13
Jamie Nordmeyer30-Aug-02 11:13 
GeneralRe: Weird Javascript issue Pin
Richard Deeming2-Sep-02 0:51
mveRichard Deeming2-Sep-02 0:51 
GeneralParser error: could'nt load .global file Pin
kinf30-Aug-02 5:37
kinf30-Aug-02 5:37 
General.NET page templates and the form element Pin
MS le Roux30-Aug-02 3:32
MS le Roux30-Aug-02 3:32 
General.NET Richtextbox control Pin
Paul Watson29-Aug-02 23:57
sitebuilderPaul Watson29-Aug-02 23:57 
GeneralRe: .NET Richtextbox control Pin
Richard Deeming30-Aug-02 1:02
mveRichard Deeming30-Aug-02 1:02 
GeneralRe: .NET Richtextbox control Pin
Paul Watson30-Aug-02 1:09
sitebuilderPaul Watson30-Aug-02 1:09 
GeneralRe: .NET Richtextbox control Pin
Richard Deeming30-Aug-02 1:51
mveRichard Deeming30-Aug-02 1:51 
GeneralRe: .NET Richtextbox control Pin
Richard Deeming4-Sep-02 5:47
mveRichard Deeming4-Sep-02 5:47 
GeneralSerial Port Pin
Todd Marshall29-Aug-02 3:09
Todd Marshall29-Aug-02 3:09 
GeneralRe: Serial Port Pin
Maciej Pirog29-Aug-02 4:26
Maciej Pirog29-Aug-02 4:26 
GeneralGet date of file update with JavaScript Pin
Dominik Reichl29-Aug-02 1:06
Dominik Reichl29-Aug-02 1:06 
GeneralRe: Get date of file update with JavaScript Pin
Stephane Rodriguez.29-Aug-02 1:23
Stephane Rodriguez.29-Aug-02 1:23 
GeneralRe: Get date of file update with JavaScript Pin
Dominik Reichl29-Aug-02 1:30
Dominik Reichl29-Aug-02 1:30 
GeneralRe: Get date of file update with JavaScript Pin
Stephane Rodriguez.29-Aug-02 1:50
Stephane Rodriguez.29-Aug-02 1:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.