473,748 Members | 2,595 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1947
in comp.infosystem s.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**@NShuronte l.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 ".annotatio n" 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
2031
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 good.. not there in VB.net?? 2. Some language features of VB.Net like Redim(makes it easier for developers), but not good enough reason. 3. C# is in more like standard languages and key words used are more
17
6149
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. "Decimal Number" sometimes serves to distinguish Base 10 numbers, eg "15", from Base 2 numbers, Eg "1111". At other times "Decimal Number" serves to differentiate a number from an integer. For the rest of this post I shall only use either...
34
3441
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
1501
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 tasks. To do so I have start learning a programming language, and the options seem endless. Java, C, C++, VB, C#, Delphi, etc... I'm receiving opinions left and right all better than an other. So far, I think I will go somewhere in the .NET...
7
16042
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 statement like as follows in the PageLoad: private void Page_Load(object sender, System.EventArgs e) { if (!Page.IsPostBack) { //do something here } else {
15
2380
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. The versions I know (and there are surely more) are: 1) download from www.python.org 2) enthought 3) activepython
1
1351
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 Developer?? 2. Regardless of which one is installed first, what's the best way after that to move or copy database objects like tables, queries, reports, etc. from the XP/developer box to an SS 2005 Server?? Thank you, Tom
5
12262
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 to the database. SQLSTATE=57030. Background: I created a linked server to DB2 8.1 database which called GRR_DB2Server. In my stored procedure p_FetchRawData, I need to read some data from this linked server GRR_DB2Server and insert them into
2
1422
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
1349
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 model my objects on the database schema, and their methods on the SQL/stored procs. Most of what I read suggests starting with the class. Am I doing it wrong? Mike
0
8830
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9541
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9370
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9321
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9247
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8242
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2782
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.