Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Problem with element <code></code>  (Read 5858 times)


  • Hero Member
  • *****
  • Karma: 28
  • Posts: 938
Problem with element <code></code>
« on: June 23, 2008, 01:27:04 am »

I have some problem with this stupid code <code>..if i use this in xhtml i can wrap ONLY this css code like this CODE
Code: [Select]
padding-top: 0px;
padding-right: 0;
padding-bottom: 0;
padding-left: 0;
background-attachment: scroll;
background-image: url(images/bg.jpg);
background-repeat: repeat-x;
background-position: top;
background-color: #f2f1df;
div, h1, h2, h3, h4, p, form, label, input, textarea, img, span{
margin:0; padding:0;

but if i want to wrap php code or div code i cant.Also i look over internet for 4 hours and cant found fix.YES i also use element <pre></pre> but this dont work for <div> or <?php...

Im so freaking pist right now i almost beat up my neighbor and i dont know what to do next expect throw my pc through the window. ... >:(
« Last Edit: June 23, 2008, 01:28:55 am by Sasha »
Every morning, I get up and look through the 'Forbes' list of the richest people in America. If I'm not there, I go to work. | If you love your job, you haven't worked a day in your life. snews with ♥


  • Sr. Member
  • ****
  • Karma: 16
  • Posts: 374
    • My snews with AEF Forum site
Re: Problem with element <code></code>
« Reply #1 on: June 26, 2008, 04:04:59 pm »

Try removing the php tokens from the code???
Yes! I have no siggy.


  • ULTIMATE member
  • ******
  • Karma: 88
  • Posts: 2029
  • Chasing MY bugs!
    • - rédacteur Web
Re: Problem with element <code></code>
« Reply #2 on: June 27, 2008, 08:03:14 am »

Hello Sasha
maybe you didn't encode your chars, like this :
You can use the text entity: &lt; or its numeric equivalent &#60; for openning
and &gt; or &#62; for closing.
You can see an example on this page (in french) about correct HTML tagging
See this page for List of XML and HTML character entity references.