Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > HTML, XHTML and CSS

Reply
 
LinkBack Thread Tools
Old May 30th, 2007, 11:54 AM   #1
WebForumz Admin Badge
SuperMember
 
Marc's Avatar
 

Join Date: Apr 2007
Location: Scotland, UK
Posts: 2,086
Thanks: 2
Thanked 23 Times in 23 Posts
Rep Altering Power: 89 Marc is just really nice Marc is just really nice Marc is just really nice Marc is just really nice
How do i show my code like this?

I think this is a CSS matter, if not could a mod/admin move it please.

Anyway...I am looking for how to show my code like what it is on Karinnes website, mabey she could help! (Please)

Anyway, here is a link to it... LINK.

The thing i dont get is the numbers down the side.

Thanks
Marc
__________________
Regards
Marc
Administrator - Webforumz.com

Web Design and Development Blog - Marc Fraser
Marc is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 30th, 2007, 11:58 AM   #2
Elite Veteran
 

Join Date: Aug 2005
Location: That Place
Posts: 2,081
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Rep Altering Power: 0 moojoo will become famous soon enough moojoo will become famous soon enough
Re: How do i show my code like this?

Ordered list with css style. Pretty simple with a blog engine and forms.
__________________

moojoo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 30th, 2007, 12:21 PM   #3
WebForumz Admin Badge
SuperMember
 
Marc's Avatar
 

Join Date: Apr 2007
Location: Scotland, UK
Posts: 2,086
Thanks: 2
Thanked 23 Times in 23 Posts
Rep Altering Power: 89 Marc is just really nice Marc is just really nice Marc is just really nice Marc is just really nice
Re: How do i show my code like this?

Thanks moojoo, but how do i do it.. lol :P
__________________
Regards
Marc
Administrator - Webforumz.com

Web Design and Development Blog - Marc Fraser
Marc is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 30th, 2007, 01:13 PM   #4
Elite Veteran
 

Join Date: Jan 2007
Location: You know where
Age: 32
Posts: 4,607
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 karinne is a name known to all karinne is a name known to all karinne is a name known to all karinne is a name known to all karinne is a name known to all karinne is a name known to all
Re: How do i show my code like this?

Just view the source, copy the code and play around with it.
karinne is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 30th, 2007, 01:18 PM   #5
Elite Veteran
 

Join Date: Jan 2007
Location: You know where
Age: 32
Posts: 4,607
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 karinne is a name known to all karinne is a name known to all karinne is a name known to all karinne is a name known to all karinne is a name known to all karinne is a name known to all
Re: How do i show my code like this?

Meh ... here's how I did it.

HTML
Code:
<ol class="coding">
    <li><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"</code></li>
    <li class="tab1"><code>"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;</code></li>
    <li><code>&lt;html xmlns="http://www.w3.org/1999/xhtml" lang="en-CA" xml:lang="EN-CA"&gt;</code></li>
    <li><code></code></li>
    <li><code>&lt;head&gt;</code></li>
    <li class="tab1"><code>&lt;title&gt;Some title&lt;/title&gt;</code></li>
    <li class="tab1"><code>&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&gt;</code></li>
    <li><code></code></li>
    <li class="tab1"><code>&lt;style type="text/css"&gt;</code></li>
    <li class="tab1"><code>html {</code></li>
    <li class="tab2"><code>background-color: #fff;</code></li>
    <li class="tab1"><code>}</code></li>
    <li class="tab1"><code></code></li>
    <li class="tab1"><code>body {</code></li>
    <li class="tab2"><code>color: #fff;</code></li>
    <li class="tab2"><code>margin: 0 auto;</code></li>
    <li class="tab2"><code>width: 780px;</code></li>
    <li class="tab2"><code>background-color: #900;</code></li>
    <li class="tab1"><code>}</code></li>
    <li class="tab1"><code>&lt;/style&gt;</code></li>	
    <li><code>&lt;/head&gt;</code></li>
    <li><code></code></li>
    <li><code>&lt;body&gt;</code></li>
    <li><code></code></li>
    <li><code>this site is centered</code></li>
    <li><code></code></li>
    <li><code>&lt;/body&gt;</code></li>
    <li><code>&lt;/html&gt;</code></li>
</ol>
CSS
Code:
ol.coding {
	border: 1px solid #004545;
	padding: 3px;
	list-style-type: decimal-leading-zero;
	font-family: "Courier New", Courier, monospace;
}

ol.coding li.tab1 {
	padding-left: 5ex;
}
ol.coding li.tab2 {
	padding-left: 10ex;
}
ol.coding li.tab3 {
	padding-left: 15ex;
}

ol.coding li {
	background-color: #004545;
	margin: 5px 0 5px 30px;
}
karinne is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 30th, 2007, 01:34 PM   #6
WebForumz Admin Badge
SuperMember
 
Marc's Avatar
 

Join Date: Apr 2007
Location: Scotland, UK
Posts: 2,086
Thanks: 2
Thanked 23 Times in 23 Posts
Rep Altering Power: 89 Marc is just really nice Marc is just really nice Marc is just really nice Marc is just really nice
Re: How do i show my code like this?

Ok, thanks. I think i will just give it a miss (for the moment).

Thanks anyway.
__________________
Regards
Marc
Administrator - Webforumz.com

Web Design and Development Blog - Marc Fraser
Marc is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
code , code layout , layout


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
code behind code doesnt work skat .NET 4 February 18th, 2008 06:05 AM
Can't get background to show casho Your Design and Layout 17 August 14th, 2007 07:17 AM
live search code and styleswitcher code hebel JavaScript 0 May 12th, 2007 02:16 AM
Can't get divs to show up on the right? Can someone scan over my code? KOinMotion HTML, XHTML and CSS 2 November 22nd, 2006 05:20 PM
Can somebody give me the code to hide the source code? renren JavaScript 7 March 7th, 2006 08:27 AM


Search Engine Optimization by vBSEO 3.2.0 RC8