Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / February 2005



Tip: Looking for answers? Try searching our database.

styleable enough?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bruce Lewis - 21 Feb 2005 03:35 GMT
Please check the HTML on the following page:

http://ourdoings.com/csstest1/

I've added some CLASS attributes to a lot of the tags, but haven't done
lots of spans like in csszengarden.  Is the HTML flexible enough for
designers to create a variety of looks just by changing the CSS?
Spartanicus - 21 Feb 2005 08:53 GMT
>Please check the HTML on the following page:
>
>http://ourdoings.com/csstest1/
>
>I've added some CLASS attributes to a lot of the tags, but haven't done
>lots of spans like in csszengarden.

The csszengarden markup should not be used as an example of general
purpose authoring, quite the contrary actually. I'm sure they mention
that themselves.

>Is the HTML flexible enough for
>designers to create a variety of looks just by changing the CSS?

Unless you intend to create a challenge like csszengarden you should use
the minimum number of id's and classes that you need at the time of
creation, instead use selectors where you can.

It's a false concept to think that you should be able to drastically
change the styling and/or layout of  a page with css without making any
changes to the markup.

Signature

Spartanicus

Bruce Lewis - 23 Feb 2005 03:27 GMT
> >Please check the HTML on the following page:
> >
[quoted text clipped - 6 lines]
> purpose authoring, quite the contrary actually. I'm sure they mention
> that themselves.

Yes, and I'm not doing this for general-purpose authoring.  This is a
database-driven site for a cross between blogs and photo albums.  I
don't plan on giving a wide variety of choices of markup, but do want to
allow the sufficiently motivated to do some CSS-based customization.
The extent to which I'll provide a nice user interface to ease such
customization remains to be seen.  The emphasis really should be on
getting good content published in a timely manner, but I know a lot of
people can't help but focus on presentation issues.

I'd like the markup to support a decent amount of customization.  More
important, I'd like not to have to change the markup down the line to
enable more flexibility, if it has to be done in such a way as to break
CSS that fits the current markup.  That's why I wanted to ask if the
current markup was flexible enough.

Signature

http://ourdoings.com/         Let your digital photos organize themselves.
                             Sign up today for a 7-day free trial.

Gus Richter - 23 Feb 2005 04:50 GMT
>>>Please check the HTML on the following page:
>>>
[quoted text clipped - 21 lines]
> CSS that fits the current markup.  That's why I wanted to ask if the
> current markup was flexible enough.

General-purpose or not has no relevance in my mind. Your document
contains elements. All elements can be styled. SPAN is just another
element which may be styled. CLASS or ID permits selective styling among
several like elements. I have difficulty in applying the issue of
"enough flexibility" to styling; its all in what you want it to look like.

You may be thinking in terms of Alternate Stylesheets when you mention
changing the CSS to create a variety of looks. It may interest you to
have a look at this plaything (using a little Javascript) which uses
"Alternate Styles" (which IE also supports) rather than "Alternate
Stylesheets". (Disregard the fixed box, which was for Opera in
discussing bugs.) The point to note is the extent of different styling
which is possible. It's only limited by your imagination.

Signature

Gus

Gus Richter - 23 Feb 2005 04:53 GMT
>  It may interest you to
> have a look at this plaything (using a little Javascript) which uses
> "Alternate Styles" (which IE also supports) rather than "Alternate
> Stylesheets".

All that and I forgot the URL. Sorry, but here it is:

 http://www.home.golden.net/~richterf/Opera/ChangeClass_4_Opera_1.html

Signature

Gus

Spartanicus - 23 Feb 2005 09:32 GMT
>> >Please check the HTML on the following page:
>> >
[quoted text clipped - 11 lines]
>don't plan on giving a wide variety of choices of markup, but do want to
>allow the sufficiently motivated to do some CSS-based customization.

That information should have been part of the original message.

>I'd like the markup to support a decent amount of customization.  More
>important, I'd like not to have to change the markup down the line to
>enable more flexibility, if it has to be done in such a way as to break
>CSS that fits the current markup.

To allow the styling to be changed you really should get rid of the
presentational markup first.

This is never going to work: class="entry _2004 _200404 _20040424"
Use a single class for the thumbnail paragraphs, get rid of the
class="thumb" on the thumbnail images as these can be targeted with a
descendant selector, same applies to the class="shortDate" on the strong
elements (inappropriate markup btw).

Get rid of the table also, use an unordered list for a list of links.

The double class="top siteTitle" on the header div isn't needed either.

Signature

Spartanicus

Bruce Lewis - 23 Feb 2005 14:19 GMT
> This is never going to work: class="entry _2004 _200404 _20040424"

My idea there was to enable people to set custom backgrounds for
specific years, months or dates.  If that isn't going to work, I could
go with database driven markup (style="...") for such cases.

Signature

http://ourdoings.com/         Let your digital photos organize themselves.
                             Sign up today for a 7-day free trial.

Spartanicus - 23 Feb 2005 14:57 GMT
>> This is never going to work: class="entry _2004 _200404 _20040424"
>
>My idea there was to enable people to set custom backgrounds for
>specific years, months or dates.

I didn't spot the spaces, I thought it was one class name.

Signature

Spartanicus

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.