homepage Welcome to WebmasterWorld Guest from 54.161.166.171
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
hide a things on the web pages!?
hide a things on the web pages!?
script33




msg:3388824
 11:46 am on Jul 8, 2007 (gmt 0)

4 example i use a webstat that the icon of that counter is very horrid
how i can hide it in my web pages 4 a good style?

4 example i can hide it with a layer or div?

plz teach me...

 

Marshall




msg:3388835
 12:16 pm on Jul 8, 2007 (gmt 0)

Insert your counter, or whatever, into a <div>:

<div id="hide_content" style="display:hidden;">
INSERT WHATEVER
</div>

The style="display:none;" is the key/important part.

Marshall

script33




msg:3388838
 12:31 pm on Jul 8, 2007 (gmt 0)

The style="display:none;"?
where is it?
where i insert it?

Marshall




msg:3388844
 12:56 pm on Jul 8, 2007 (gmt 0)

Place the tag below
<div id="hide_content" style="display:hidden;">
BEFORE the item you want to hide.

THEN place the item you want to hide.

THEN PLACE
</div>
AFTER the item you want to hide.

Marshall

script33




msg:3388845
 1:01 pm on Jul 8, 2007 (gmt 0)

style="display:none;"
is not intransitive?
i dont insert it?

script33




msg:3388847
 1:08 pm on Jul 8, 2007 (gmt 0)

what is your thought about this code?:
<div style="position:relative;visibility:hidden">
your code
</div>

which one is better?

Marshall




msg:3388854
 1:17 pm on Jul 8, 2007 (gmt 0)

visibility: hidden hides the element, but it still takes up space in the layout.

display: none removes the element completely from the document. It does not take up any space, even though the HTML for it is still in the source code

So it depends what effect you want: whether or not it should take up space. Also, visability:hidden if often associated with javascript, especially when you toggle an element to be seen or not say when clicking on an informational link.

Marshall

innocbystr




msg:3389215
 4:05 am on Jul 9, 2007 (gmt 0)

Thanks Marshall (& script33). Glad I read this thread. I didn't know there was such a thing! I'm already using it and you're right, the hidden object doesn't take up any space. Super!

Thanks again,
Blair

Marshall




msg:3389221
 4:16 am on Jul 9, 2007 (gmt 0)

You're more than weclome. Glad to help when I can.

Marshall

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved