Scoop -- the swiss army chainsaw of content management
Front Page · Everything · News · Code · Help! · Wishlist · Project · Scoop Sites · Dev Notes · Latest CVS changes · Development Activities
CSS, SPAN, DIV, and HTML4 Feature Requests
By j1mmy , Section Code []
Posted on Tue Jan 07, 2003 at 12:00:00 PM PST
I've been working on setting up a Scoop site these last few days. I've found that Scoop uses  FONT and TABLE elements liberally and makes no attempt whatsoever to leverage CSS.

I've been going through the Scoop code for my site and making changes all over the place, replacing TABLE and FONT elements with DIV and SPAN elements wherever I can. I've been doing the same with the various blocks and boxes in Scoop.

There's a number of advantages here.

First, less work is done by the server. In current Scoop, all sorts of stylistic information (fonts, colors, etc.) are templated in as the page is generated. If these were replaced by class attributes in the appropriate elements, the server could eliminate a large number of replacements and let the client pick up the CSS file and do the styling itself. This does lose some flexibility (|norm_font|, for example, could be replaced with HTML or text that has nothing to do with a font style for whatever reason), but nothing serious.

Cleaner code. In many places, I've seen things like "|title_font||title|</b></font>" which obviously goes a bit strange if you change title_font drastically. SPANs and DIVs would help protect against these kinds of errors.

Table layouts are evil. All the nested tables introduce rendering overhead to the client and bloat the HTML.

Finally, it might be nice if the HTML generated by Scoop actually conformed to some recent HTML spec.

Anyways, I'm working on making these changes for my own site. If there's any interest in merging some of these changes, let me know.

< construct-d | creative commons >

Menu
· create account
· faq
· search
· report bugs
· Scoop Administrators Guide
· Scoop Box Exchange

Login
Make a new account
Username:
Password:

Poll
Scoop should use
· DIV+SPAN 75%
· TABLE+FONT 0%
· XML+XSLT 25%

Votes: 4
Results | Other Polls

Related Links
· Scoop
· More on Feature Requests
· Also by j1mmy

Story Views
  52 Scoop users have viewed this story.

Display: Sort:
CSS, SPAN, DIV, and HTML4 | 9 comments (9 topical, 0 hidden)
Been through this before (none / 0) (#1)
by panner on Wed Jan 08, 2003 at 02:23:50 PM PST

Yes, the HTML Scoop produces is horrible and should be locked in a cage, buried, and forgotten. We've been through this several times, and people have volunteered to do it several times. But it's not that simple to just go through all of Scoop and change the HTML.

The big problem is that we want to maintain compatibility, especially between minor releases. That means we can't suddenly change all the current HTML to be based on CSS. A number of sites would break, and would take considerable effort by the admins to get the designs back to normal.

It's possible to switch Scoop over to CSS by default, though, thanks to themes. But first all of the HTML in the code needs to be moved to blocks, where themes can handle it. Someone was working on this, I think, though I don't know about its status. Once all of the HTML is in blocks, it'll possible to create a new CSS theme which is the default for new installs, but isn't used on current sites (unless the admins choose to).



--
Keith Smiley



payday loans spring-valley (none / 0) (#4)
by Pervez on Sun Apr 08, 2018 at 02:01:41 PM PST

Your article is definitely remarkable along with necessary to prepare wedding in a very straightforward fashion. There are various instances are generally require consequently past arranging creates strangely more easy. Currently click this payday loans spring-valley Cheers pertaining to wonderful article.



If these were replaced (none / 0) (#5)
by jennyhannb on Wed Oct 03, 2018 at 03:18:25 AM PST

If these were replaced by class attributes in the appropriate elements, the server could eliminate a large number of replacements and let the client pick up the CSS file and do the styling itself. You can play happy wheels in full-screen mode in your browser for free without any annoying AD.



best bathroom remodeling brooklyn (none / 0) (#6)
by Pervez on Sun Mar 24, 2019 at 12:26:28 PM PST

Certainly, tremendous put up! I do prefer an unbending system and often will look for further put up because of most people for the reason that put up sent everybody gratification and provides numerous assists in the can comparable give good results what follows. Nowadays follow this best bathroom remodeling brooklyn Thanks a lot very much.



thank you (none / 0) (#7)
by tonnyken on Mon May 06, 2019 at 11:24:34 PM PST

Hi there, I found your blog via Google while searching for such kinda informative post and your post looks very interesting for me. candy crush soda



digital (none / 0) (#9)
by digital99 on Tue Aug 18, 2020 at 05:32:56 PM PST

Thanks for sharing the information I really liked the content I really liked the various options that one has so that I can investigate more catalogo liverpool



CSS, SPAN, DIV, and HTML4 | 9 comments (9 topical, 0 hidden)
Display: Sort:

Hosted by ScoopHost.com Powered by Scoop
All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest © 1999 The Management

create account | faq | search