/    Sign up×
Community /Pin to ProfileBookmark

website question regarding css

There is this website that is currently up ([url]www.outsidepride.com[/url]) that someone i know has. It is done in php w/ the layout done using tables and css to style the tables. He is making a lot of money w/ the website (over 100k a year) and has gone through some ppl doing the coding for him. He started out doing it but doesnt have the time. He is the son of a friend of my dad’s so i could get it pretty easy. My main question right now, how much do u think it would help the site to convert it to a css layout instead of the table layout? How much faster u think it will make it? Also, how hard do you think it would be to convert everything over? thx

to post a comment
CSS

13 Comments(s)

Copy linkTweet thisAlerts:
@JPnycAug 29.2004 — I doubt it would make any noticeable difference at all, except to a few web standards enthusiasts who checked the source code.
Copy linkTweet thisAlerts:
@MstrBobAug 29.2004 — If done with [I]proper, semantic[/I] markup, and with pure-CSS, I can see you really hacking away at that source code. There's a lot of unneccessary HTML in there, along with a lot of unecessary classes. Considering the website's size and usage, if you used semantic markup to aid in the styling (ex: using an unordered list for the nav links and similar) you'd save a large amount of bandwith. You'd hence get faster page loads for users on 56k (took a few seconds for me, and I'm on cable). Generally, especially non-technofiles, the longer a page takes to load, the less likely they are to use the site. It has the potential to increase the visitor numbers and to really cut down on bandwith. I see nothing particularly difficult with the design, so there shouldn't be a large CSS file or many browser hacks needed at all. It would be a successful and worthwhile redesign.
Copy linkTweet thisAlerts:
@CharlesAug 29.2004 — Take a look at http://www.delorie.com/web/lynxview.cgi?url=http%3A%2F%2Fwww.outsidepride.com%2Fstore%2Fhome.php and you'll get an idea of just what the problem is. That site is a pretty miserable experience for anybody using a Braille or audio browser.
Copy linkTweet thisAlerts:
@JPnycAug 29.2004 — You could trim the code a bit yeah, but we're talking about maybe 50 chars in a txt file. You won't even notice the difference. Trimming graphic content would make a noticeable difference.
Copy linkTweet thisAlerts:
@MstrBobAug 29.2004 — No, he's got tons of uneccessary code. Trimming the code on the home page would drop 1k or so in file size. Now multiply that by the number of pages on the website times the number of visitors and that's a substantial ammount.

And graphics optimization never hurts. Unless the quality drop results in that banner. It's so pixelated.... it looks like it was saved as a .jpg in MSPAINT *shudders*
Copy linkTweet thisAlerts:
@Paul_JrAug 29.2004 — [i]Originally posted by DUNSEL [/i]

[B]You could trim the code a bit yeah, but we're talking about maybe 50 chars in a txt file.[/B][/QUOTE]

We're talking more than just 50 characters here; you could trim that down a lot.

This, for example:
[size=1]
<font class="CategoriesList"><a href="home.php?cat=249" class="VertMenuItems">Animal Repellent</a></font><br>

<font class="CategoriesList"><a href="home.php?cat=250" class="VertMenuItems">Arches</a></font><br>
<font class="CategoriesList"><a href="home.php?cat=251" class="VertMenuItems">Books</a></font><br>
<font class="CategoriesList"><a href="home.php?cat=252" class="VertMenuItems">Dethatcher</a></font><br>
<font class="CategoriesList"><a href="home.php?cat=253" class="VertMenuItems">Fertilizer</a></font><br>
<font class="CategoriesList"><a href="home.php?cat=255" class="VertMenuItems">Gardening Products</a></font><br>
<font class="CategoriesList"><a href="home.php?cat=317" class="VertMenuItems">Grass Plugs</a></font><br>
<font class="CategoriesList"><a href="home.php?cat=254" class="VertMenuItems">Greenhouse Kits</a></font><br>
<font class="CategoriesList"><a href="home.php?cat=256" class="VertMenuItems">Harrows</a></font><br>
<font class="CategoriesList"><a href="home.php?cat=257" class="VertMenuItems">Inoculant</a></font><br>

<font class="CategoriesList"><a href="home.php?cat=344" class="VertMenuItems">Landscape Design</a></font><br>
<font class="CategoriesList"><a href="home.php?cat=258" class="VertMenuItems">Landscape Fabric</a></font><br>
<font class="CategoriesList"><a href="home.php?cat=259" class="VertMenuItems">Lawn Edger</a></font><br>
<font class="CategoriesList"><a href="home.php?cat=261" class="VertMenuItems">Lawn Mower</a></font><br>
<font class="CategoriesList"><a href="home.php?cat=260" class="VertMenuItems">Lawn Roller</a></font><br>
<font class="CategoriesList"><a href="home.php?cat=262" class="VertMenuItems">Lawn Stripers</a></font><br>
<font class="CategoriesList"><a href="home.php?cat=263" class="VertMenuItems">Lawn Sweepers</a></font><br>
<font class="CategoriesList"><a href="home.php?cat=264" class="VertMenuItems">Moss</a></font><br>
<font class="CategoriesList"><a href="home.php?cat=265" class="VertMenuItems">Mycorrhizae</a></font><br>

<font class="CategoriesList"><a href="home.php?cat=266" class="VertMenuItems">Reel Mowers</a></font><br>
<font class="CategoriesList"><a href="home.php?cat=319" class="VertMenuItems">Seed</a></font><br>
<font class="CategoriesList"><a href="home.php?cat=268" class="VertMenuItems">Soil Test Kits & More</a></font><br>
<font class="CategoriesList"><a href="home.php?cat=267" class="VertMenuItems">Spreaders</a></font><br>
<font class="CategoriesList"><a href="home.php?cat=269" class="VertMenuItems">Squirrel Feeders</a></font><br>
<font class="CategoriesList"><a href="home.php?cat=318" class="VertMenuItems">Trail Mower</a></font><br>
[/size]


Could be trimmed down to:
[size=1]
<ul id="categories">
<li><a href="home.php?cat=249">Animal Repellent</a></li>
<li><a href="home.php?cat=250">Arches</a></li>
<li><a href="home.php?cat=251">Books</a></li>
<li><a href="home.php?cat=252">Dethatcher</a></li>
<li><a href="home.php?cat=253">Fertilizer</a></li>
<li><a href="home.php?cat=255">Gardening Products</a></li>
<li><a href="home.php?cat=317">Grass Plugs</a></li>
<li><a href="home.php?cat=254">Greenhouse Kits</a></li>
<li><a href="home.php?cat=256">Harrows</a></li>
<li><a href="home.php?cat=257">Inoculant</a></li>
<li><a href="home.php?cat=344">Landscape Design</a></li>
<li><a href="home.php?cat=258">Landscape Fabric</a></li>
<li><a href="home.php?cat=259">Lawn Edger</a></li>
<li><a href="home.php?cat=261">Lawn Mower</a></li>
<li><a href="home.php?cat=260">Lawn Roller</a></li>
<li><a href="home.php?cat=262">Lawn Stripers</a></li>
<li><a href="home.php?cat=263">Lawn Sweepers</a></li>
<li><a href="home.php?cat=264">Moss</a></li>
<li><a href="home.php?cat=265">Mycorrhizae</a></li>
<li><a href="home.php?cat=266">Reel Mowers</a></li>
<li><a href="home.php?cat=319">Seed</a></li>
<li><a href="home.php?cat=268">Soil Test Kits & More</a></li>
<li><a href="home.php?cat=267">Spreaders</a></li>
<li><a href="home.php?cat=269">Squirrel Feeders</a></li>
<li><a href="home.php?cat=318">Trail Mower</a></li>
</ul>
[/size]

Which is not only more semantic, easier to read/modify, but smaller by over 1K -- and that's [i]just[/i] the category links. That code could use some major cleaning in a terrible, terrible way.

[i]Originally posted by MstrBob [/i]

[B]No, he's got tons of uneccessary code. Trimming the code on the home page would drop 1k or so in file size.[/B][/QUOTE]

If that site was rewritten with semantic, clean markup, I bet that'd be closer to 10K.
Copy linkTweet thisAlerts:
@JPnycAug 29.2004 — Yeah I see the point, but a 1k difference in my opinion won't be noticeable in terms of download speed. And mutilplying the pages isn't valid because you only DL 1 at a time.
Copy linkTweet thisAlerts:
@Ben_RogersAug 29.2004 — [i]Originally posted by DUNSEL [/i]

[B]Yeah I see the point, but a 1k difference in my opinion won't be noticeable in terms of download speed. And mutilplying the pages isn't valid because you only DL 1 at a time. [/B][/QUOTE]
He's referring to the bandwidth used. Smaller, semantic code = cheaper.
Copy linkTweet thisAlerts:
@JPnycAug 29.2004 — Ah, well in that case it would make an appreciable difference. Dunno that it would allow a cheaper hosting package, but it might, depending on the number of visitors. Well to answer his other question then, which was how much difficulty is involved, it would basically be redesigning the entire site. Would end up taking less time than trying to weed out the bad code piece by piece.
Copy linkTweet thisAlerts:
@Ben_RogersAug 29.2004 — No, I think one good afternoon could be all the redesign requires, if he uses includes...
Copy linkTweet thisAlerts:
@JPnycAug 29.2004 — What would you use SSI for? Bear in mind I didn't bother to sift through that mountain of code.
Copy linkTweet thisAlerts:
@Ben_RogersAug 29.2004 — [i]Originally posted by DUNSEL [/i]

[B]What would you use SSI for? Bear in mind I didn't bother to sift through that mountain of code. [/B][/QUOTE]
For the navigation, footers, and headers that are repeated on every page, of course. Then you just change the header and footer files, and you're almost done, just gotta change the content's HTML.
Copy linkTweet thisAlerts:
@Paul_JrAug 30.2004 — [i]Originally posted by DUNSEL [/i]

[B]Yeah I see the point, but a 1k difference in my opinion won't be noticeable in terms of download speed. And mutilplying the pages isn't valid because you only DL 1 at a time. [/B][/QUOTE]

That's just 1K for that small piece of code -- there's code like that all over the place. You could probably drop the filesize of that main page by 10K. Multiply that by however many pages you have, and multiply that by the amount of traffic you get, and then you'll see how much bandwidth you save. Wasted bandwidth == wasted money.
×

Success!

Help @pawky spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...