HomeWatched TopicsRegisterSearchDirectory
FAQMemberlistUsergroupsLog inStoresItemsBank

Reply to topic Page 1 of 1
using pre tag
Message  

Reply with quote
Post using pre tag 
when i want to display code in a page that should not be executed i write that html code inside

example 1

<pre>
 <code>
  #div{
    float: left;
    width: 900px;
    height: auto;
}

 </code>
</pre>

this is working fine, however when i write the following code, it is not appearing as code, instead it is being executed.

example 2

<pre>
 <code>
    <div id="topmenu">
    <ul>
    <li><a href="#">Home</a></li>
    <li><a href="#">About Us</a></li>
    <li><a href="#">Contact Us</a></li>
    </ul>
    </div>
 </code>
</pre>

the list in this code is being executed, however i want the list code to appear like a code as in example 1

please advice.

thanks

View user's profile Send private message

Reply with quote
Post  
Today I just joined here¡£ everyone please take care


_________________
outlook 2010
Microsoft Office Pro 2010
Buy Microsoft office 2010
View user's profile Send private message
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  




FireFox! The PHP Forum Loans and Credit
Panama Web Design for Hire Web Hosting
Web Hosting and Dedicated Servers Advertise Here $10 a Month Designer Children
Insurance HGH Domain name registration
Affordable web-hosting Dedicated Server Management

Web Design by PlatinumShore.com & Web Hosting by TradeWebHosting.com