PDA

View Full Version : html question


hanyo66
01-04-2009, 02:16 PM
Posting in here now because I need to know this asap:

How do I turn a section of html off on my website. I want to show a code snippet but I don't want it to actually show what it's supposed to look like, ye dig?

hanyo66
01-04-2009, 02:59 PM
Come on assholes

galloway
01-04-2009, 03:04 PM
not sure if thats what you have in mind but:


<div id="hiddencontent" style="visibility:hidden">
the shit you wanna hide
</div>


be more precise next time :-D

edit:thats a css function, not html btw

hanyo66
01-04-2009, 03:07 PM
Ha I don't want to hide it.

Example of what I want to do:

code and such here

BUT I don't want that to show up bold, but I still want the tags attached.

It's like the stuff between the dividers on this group page:
http://www.flickr.com/groups/wishitookthat/

galloway
01-04-2009, 03:14 PM
oooooooooh that... thats a bit fucked up.... heres what you have to replace:
< - &gt;
> - &lt;
and so on

edit: oh found something that might help you
http://www.chami.com/tips/internet/050798i.html

hanyo66
01-04-2009, 03:19 PM
I don't understand any of that haha

galloway
01-04-2009, 03:29 PM
oh fucking hell
save this as wow.html:

<html>
<head>
<title>now</title>
</head>
<body>
<p>
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;tittle&gt;can u understand it now&lt;&frasl;title&gt;<br />
&lt;&frasl;head&gt;<br />
&lt;body&gt;<br />
&lt;h1&gt;coz i hope u do&lt;&frasl;h1&gt;<br />
&lt;&frasl;body&gt;<br />
&lt;&frasl;html&gt;<br />
</p>
</body>
</html>


this is what wow.html is gonna look like:

<html>
<head>
<tittle>can u understand it now</title>
</head>
<body>
<h1>coz i hope u do</h1>
</body>
</html>


replace
< with &lt;
> with &gt;
/ with &frasl;
and put the whole thing into a paragraph <p>like thie</p>

edit:woops mixed up lt's and gt's a bit but i fix'd em

hanyo66
01-04-2009, 03:43 PM
Hahah thanks bro, posi tomorrow

gorgoroth
01-04-2009, 03:58 PM
you can just put

<code></code>

lol :P