473,402 Members | 2,046 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Which comes first?

Almost like the chicken or the egg query but it has been a question in my
mind while going through the process of changing over from TABLES to
stylesheet.

I wondered how one knows all that is needed in a stylesheet list before
starting the page. Yesterday, I redid a small page which used tables over to
an external stylesheet. I used references from pagersource.com and articles
from sitepoint.com. I discovered in the process,which went along fairly
well, that I needed another class. That was easy enough to do since I had
the page and the stylesheet open in a tabbed text editor.

1. I wondered what are the BASIC items usually put into an external
stylesheet before launching into putting a web page together and is it part
of the procedure to just add extra things as they are needed?
2. I suppose the labels for these classes are an individual thing but I
wondered if there was a source that gave suggestions for the title of a
class. Since my extra was a <p> situation I just named it .p2 so it could
have its own characteristics (font colour, absence of background etc)
3. Are external stylesheets stored in their own folder on the server
therefore requiring a link path in the head reference?

A friend asked for a website which I put together last month using 'what I
know'. After doing research on the current state of affairs I realized my
'known' was a classic example of 'how not to do a website' -tables,
transparent gifs, nested tables,- When follow up edit or revision comes on
the plate the issue of css or tables is a non-argument I concluded and I'm
NOT an ongoing web production person. That site is complete and does look
good but I'm launching into 'getting to know' css just for its ease of use.

Its one thing to edit an existing web page but to prepare a stylesheet to
start from scratch had me wondering. Many of the very good css reference
sites tend to assume that the content of a stylesheet is a known. I couldn't
find a definite answer to storing the stylesheet either....in with the index
of the whole site or in a stylesheet folder?

Rose

--
"Success is when you don't know whether you're working or playing
Jul 21 '05 #1
3 1938
in comp.infosystems.www.authoring.stylesheets, RoseW wrote:
Almost like the chicken or the egg query but it has been a question in my
mind while going through the process of changing over from TABLES to
stylesheet.

I wondered how one knows all that is needed in a stylesheet list before
starting the page.
Experience.
1. I wondered what are the BASIC items usually put into an external
stylesheet before launching into putting a web page together and is it part
of the procedure to just add extra things as they are needed?
Usually.
2. I suppose the labels for these classes are an individual thing but I
wondered if there was a source that gave suggestions for the title of a
class. Since my extra was a <p> situation I just named it .p2 so it could
have its own characteristics (font colour, absence of background etc)
Use class names that descrie what is the content. So if you have intro
paragraph, use class intro. If you have important paragraph, use class
important. Even if you use same style for both. (you may desice later
that you need to stress important paragraphs more/less)
3. Are external stylesheets stored in their own folder on the server
Practically always.
therefore requiring a link path in the head reference?
In practice.
That site is complete and does look
good but I'm launching into 'getting to know' css just for its ease of use.
Yes. Creating website using CSS for style instead of tables and other
html stuff is much easier. But it is not trivial, mainly because of
browser bugs.
Its one thing to edit an existing web page but to prepare a stylesheet to
start from scratch had me wondering.
The problem with making stylesheet is that it is very hard to do it
before you know what to show. Not that it is easy to style table layout
eiher without knowing content.
Many of the very good css reference
sites tend to assume that the content of a stylesheet is a known.
Don't undertand why you think it is problem? (it is, but several ways...)
I couldn't
find a definite answer to storing the stylesheet either....in with the index
of the whole site or in a stylesheet folder?


Doesn't matter. (expect in some old, now irrelevant, browser had bug on
finding background images etc)
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Utrecht, NL.
Jul 21 '05 #2
Laura answered: > 3. Are external stylesheets stored in their own folder on
the server

Practically always-Doesn't matter. (expect in some old, now irrelevant,
browser had bug on finding background images etc) ...Creating website using
CSS for style instead of tables and other html stuff is much easier. But it
is not trivial, mainly because of browser bugs.
Thanks for your immediate response!
I had something hanging in my head and it must have been from a long time
ago that the style.css went in the same area as the index.html. This info
goes along with all the rest of the material that has changed (evolved?)in
the last year or so<grin>

I knew and understood-a little- about css and for sure I agree that it is
NOT trivial just with a month of reviewing and catching up. There is an
acronym K.I.S.S. (keep it simple...) and it seems to me that this 'simple'
concept is drifting away and perhaps its the security factor with browsers
but that's another topic.

Again, I appreciate your answer-saved a lot of searching around again today
:)

Rose
in Canada

Jul 21 '05 #3
"RoseW" <wd**@NShurontel.on.ca> wrote:
1. I wondered what are the BASIC items usually put into an external
stylesheet before launching into putting a web page together
I use a variation of this stylesheet to remove to inconsistency among
browsers and make a plain sheet to start with:
http://tantek.com/log/2004/undohtml.css
and is it part of the procedure to just add extra things as they are
needed?
Yes, I would say so. Creating a web page is a iterative procedure.
2. I suppose the labels for these classes are an individual thing
but I wondered if there was a source that gave suggestions for the
title of a class.
It should describe the content if possible, not the current look
wanted. Like ".annotation" or ".example".
3. Are external stylesheets stored in their own folder on the server
therefore requiring a link path in the head reference?


Technically, it doesn't matter. Storing it in a separate directory is
just a way to keep things sorted.

Bye,
Martin
Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: KN | last post by:
I know both are pretty much the same and it comes down to personal choice. But I have to make the choice for the team. Things so far that I am considering 1. XML documentation in C# -- thats...
17
by: John Bentley | last post by:
John Bentley: INTRO The phrase "decimal number" within a programming context is ambiguous. It could refer to the decimal datatype or the related but separate concept of a generic decimal number....
34
by: sushant | last post by:
hi all, suppose i have 2 loops one inside the other, like this 1) for(i=0;i<=100;i++) { for(j=0;j<=10;j++) { some code; }
2
by: hholidayy | last post by:
Hi everyone, I have a dilemma and I hope you could bring me some guidelines I want to develop some in-house software(s) at my work, to save everyone time and energy spent on the wrong repetitive...
7
by: Amadelle | last post by:
Hi all and thanks in advance, I am stuck! I can't figure out how to identify which button was clicked on my ASP.NET page in the PostBack event? So what I am trying to do is to is to have an if...
15
by: Brian Blais | last post by:
Hello, Are there any recommendations for which Windows python version to use? I'd like to see a pros-and-cons description of each, given that different uses might dictate different versions. ...
1
by: tlyczko | last post by:
I have Visual Studio Tools for Office (VSTO) and the SS 2005 Developer that comes with it, all of which I can install on my local XP box. 1. Which one do I install first, VSTO or SS 2005...
5
by: alingsjtu | last post by:
Hello, every body. When execute dynamic generated multiple OPENQUERY statements (which linkes to DB2) in SQLServer, I always got SQL1040N The maximum number of applications is already connected...
2
by: Jason Sachs | last post by:
In the function copy_info below, which happens first: (a) X gets copied (b) Y's destructor is called class T { X m_info; L m_semaphore; public:
4
by: Mike | last post by:
Which comes first? The database schema or class design? I'm used to developing the database tables and fields based on the functional requirements of an application, so it makes sense to me to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.