i was wondering if there was a html code that could hide the page from one point downwards.
not the page source, just the page content, so no one could see anything else.
please reply.
i was wondering if there was a html code that could hide the page from one point downwards.
not the page source, just the page content, so no one could see anything else.
please reply.
<div style="display:none;">
put unseen stuff here
</div>
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
thanks, but is there soomething that is kind of 'open-ended' that will hide even the stuf below it, without it being in the tag?
Last edited by Artichoke; 08-09-2005 at 08:09 PM.
How about:
<style type="text/css">
html, body {
display:none;
}
</style>
Then wrap all your content in a <div style="display:block;"></div>.
That'll hide anything outside the div.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Nope, display is inherited.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
I thought it wasn't inherited unless it was set to inherit?
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Some properties inherit by default. If they do, the property definition will contain, "Inherited: yes".Originally Posted by Twey
That said, the display property is not inherited, but the value none is a special case:
noneMikeThis value causes an element to generate no boxes in the formatting structure (i.e., the element has no effect on layout). Descendant elements do not generate any boxes either; this behavior cannot be overridden by setting the ’display’ property on the descendants.
It's one of those ones that is inherited anyway due to 'logical containment' (my way of expressing it). Display:none and visibility:hidden are both like that. Opacity is another one. Absolute and relative position are, somewhat as well. Anything that has to do with if you can see something or not is like this. You could wrap everything on the page in a division id="content":
Then wherever you wanted something to show, use:Code:#content { position:relative; top:-30000px; left:-30000px; }
In fact, if you put your 'content' division as the first thing on the page, you wouldn't have to close that tag.HTML Code:<div style="position:relative;top:30000px;left:30000px"> Stuff to see goes here </div>
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Bookmarks