TulipTools Internet Business Owners and Online Sellers Community

Full Version: view source page formatting
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Violent1 Smileyyellowbang

when you goto my site.....

http://www.webgraphicssource.com

and use view source, somehow the html is not foramtted all nice and pretty.

from my file it looks like this;

       
Code:
<table width="100%" border="0" cellspacing="0" cellpadding="0">
                   <tr>
                    <td>
                     <img src="templates/10110/images/image_14.jpg" width="121" height="10">
                    </td>
                   </tr>
                   <tr>
                    <td height="17" background="templates/10110/images/image_18.jpg">
                     <div width="100%" style="PADDING-LEFT: 6px; PADDING-TOP: 0px">
                      <INPUT name="keywords" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; WIDTH: 110px; BORDER-BOTTOM: 0px; HEIGHT: 15px; background-color: #C2C2C2;">
                     </div>
                    </td>
                   </tr>
                   <tr>
                    <td>
                     <img src="templates/10110/images/image_19.jpg" width="121" height="19">
                    </td>
                   </tr>
                  </table>

but on the website, it is all running together!!! :twistedevil:

I hate that it is doing this, does anyone know what would cause this???
When you have a PHP file (or any kind of dynamic server-side processing), the server processes it then returns the HTML to the visitor's browser.  Unlike with HTML, where the server just turns the code over to the visitor's browser, with no processing step.  When you have PHP used in your page the view source will never look like the code that you saved.
it's only on the home page, it was fine yesterday.

if you view any of the other pages, it is formatted correctly, or looks normal
I don't know why it is doing that, but if I were you, I would not worry about it. The browser reads it even if every last bit of it is on one line. That is what I believe, anyway, from what I have read. Now, if you want something to worry about, run your CSS through the w3c.org validator. I just did, and you'll find plenty of problems there to keep you busy.  Sad1 sorry.
yes I know about the validator, The version that is up right now is an old version trying to see if it made a difference.

cre-loaded is coded very poorly for validating, so it will take forever to fix all of the errors.  That is a project to work on later down the road.  Since it is open source tons of the contributions have horrible coding.

I am working on making the home page validated, but that is on the back burner right now.
PG,

The OSCommerce coding sucks (opensource)--------------it is very difficult to work with.  Tongue2

Kirk,  your site looks great, btw! Thumbsup
Well, I do know what you mean about open source code not always being the greatest. When people are giving away something, they don't necessarily work so hard at it. Plus, the rules change, and yet the code is old in many cases, and so you have to bring it up to snuff. The errors I saw in that CSS I looked at last night did not seem insurmountable. Just little tweaks would fix them.
PG,

You are soooooo lucky that you know code------I SUCK! :turkey1: