Jump to content

How is this done?


sam06

Recommended Posts

I'm assuming you're talking about the little table that is labeled "HTML Code", and has a blue border, etc...

 

That techniques is done by <div> tags, here is the exact code from the site...

 

 

<div class='codewrap'><h2 class='specialT'>HTML Code:</h2><pre class='code'>
<html>
<head>
</head>
<body>
<h2>My first webpage!</h2>
</body>
</html>
</pre></div>

 

Then you would need find the class in their included CSS files in order to determine the specifics. (ie...

 

If you wanted to include it all on the same page you would...

 

 

<script type="text/css">
.codewrap {

border: 1px;

} 
</script>

 

Otherwise, make it an included file.

 

 

I hope this helped.

 

I'd suggest reading up on <div>, search google for some tutorials, it will all make sense real quickly if this didn't.

Link to comment
Share on other sites

I think he also wants to know how to show the code as you would see it in ur text editor. They most likely use a function(im pretty sure there site is made in php) that converts html characters to their html entities. Basicly converting < > to "text codes"

 

have a look here for all the symbols(or most of em).

http://www.w3schools.com/tags/ref_entities.asp

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.