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
https://forums.phpfreaks.com/topic/114455-how-is-this-done/#findComment-588574
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
https://forums.phpfreaks.com/topic/114455-how-is-this-done/#findComment-588580
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.