Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-23-2011, 04:12 PM   PM User | #1
Kevin_M_Schafer
Regular Coder

 
Kevin_M_Schafer's Avatar
 
Join Date: Apr 2011
Location: Fairfax, Minnesota, U.S.A.
Posts: 482
Thanks: 97
Thanked 17 Times in 17 Posts
Kevin_M_Schafer is an unknown quantity at this point
Style sheet question

Hello,

Does using a style sheet to control font style, size, and color, slow down the display of a webpage -- compared to having all the code in the same place?

I've used style sheets, and this is always something I wanted to ask someone.

Thanks for your time.
__________________
My keyboard is an IBM from 1993 and I like it that way. | Who is Dan Well? Everyone always says I know Dan Well.Building a web page is like building a birdhouse. Put it up there and watch 'em come. | Maintaining the aspect ratio of an image is more important than having a cold orange pop.
Kevin_M_Schafer is offline   Reply With Quote
Old 11-23-2011, 05:43 PM   PM User | #2
Frankie
Regular Coder

 
Join Date: Sep 2011
Posts: 309
Thanks: 3
Thanked 35 Times in 35 Posts
Frankie is an unknown quantity at this point
Yes, it does, but only slightly. So, if you would have only one page for whatever reason, you should keep the on-page style block. But if you have several pages that are identical apart from the contents, it would be foolish not to use an external style sheet, wouldn't it?
__________________
Frank

How to: Target IE in, Position in, Center in, Create a Fixed ('Sticky') Footer with, and Create a Drop-Down/Fly-Out Menu with CSS: Website Laten Maken Amsterdam.
Frankie is offline   Reply With Quote
Users who have thanked Frankie for this post:
Kevin_M_Schafer (11-23-2011)
Old 11-23-2011, 06:27 PM   PM User | #3
Kevin_M_Schafer
Regular Coder

 
Kevin_M_Schafer's Avatar
 
Join Date: Apr 2011
Location: Fairfax, Minnesota, U.S.A.
Posts: 482
Thanks: 97
Thanked 17 Times in 17 Posts
Kevin_M_Schafer is an unknown quantity at this point
Thank you, Frank. I agree, but I would never know unless I asked. I'm working on a project for myself that may have 80,000 pages when we're completed. A dictionary.
__________________
My keyboard is an IBM from 1993 and I like it that way. | Who is Dan Well? Everyone always says I know Dan Well.Building a web page is like building a birdhouse. Put it up there and watch 'em come. | Maintaining the aspect ratio of an image is more important than having a cold orange pop.
Kevin_M_Schafer is offline   Reply With Quote
Old 11-23-2011, 06:30 PM   PM User | #4
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
Quote:
Originally Posted by Kevin_M_Schafer View Post
Thank you, Frank. I agree, but I would never know unless I asked. I'm working on a project for myself that may have 80,000 pages when we're completed. A dictionary.
80,000 pages? Wow! Why do you need that many pages?
__________________
Teed
teedoff is offline   Reply With Quote
Old 11-23-2011, 11:16 PM   PM User | #5
Kevin_M_Schafer
Regular Coder

 
Kevin_M_Schafer's Avatar
 
Join Date: Apr 2011
Location: Fairfax, Minnesota, U.S.A.
Posts: 482
Thanks: 97
Thanked 17 Times in 17 Posts
Kevin_M_Schafer is an unknown quantity at this point
I'm trying to figure out the best way to produce results on a single word search, most likely using SSI -- a page for each word. The shtml content would show through a box in the master page, and a single style sheet would control the type style, size, and color of the shtml pages.

I'm trying to get this done by using patterns in a direct search rather than indexing 80,000 urls.

If there's a better way, I wouldn't mind an opinion.
__________________
My keyboard is an IBM from 1993 and I like it that way. | Who is Dan Well? Everyone always says I know Dan Well.Building a web page is like building a birdhouse. Put it up there and watch 'em come. | Maintaining the aspect ratio of an image is more important than having a cold orange pop.
Kevin_M_Schafer is offline   Reply With Quote
Old 11-23-2011, 11:23 PM   PM User | #6
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
I would think a database and a few pages would handle all this for you. The user searches a word using your form. The form user input is compared to the database using a sql query, then server side scripting language displays the results.
__________________
Teed
teedoff is offline   Reply With Quote
Users who have thanked teedoff for this post:
Kevin_M_Schafer (11-24-2011)
Old 11-24-2011, 04:33 PM   PM User | #7
Kevin_M_Schafer
Regular Coder

 
Kevin_M_Schafer's Avatar
 
Join Date: Apr 2011
Location: Fairfax, Minnesota, U.S.A.
Posts: 482
Thanks: 97
Thanked 17 Times in 17 Posts
Kevin_M_Schafer is an unknown quantity at this point
Well, all the words of the English language still have to be available to a search engine, most likely by using each word as a title to a page, otherwise a search would find the word "computer," for example, in every other usage in the entire database.

I don't necessarily know how to keep a word search from finding more than one result unless I make one page for each word in the English language.

If you have perhaps a better way, I am open to all ideas.
__________________
My keyboard is an IBM from 1993 and I like it that way. | Who is Dan Well? Everyone always says I know Dan Well.Building a web page is like building a birdhouse. Put it up there and watch 'em come. | Maintaining the aspect ratio of an image is more important than having a cold orange pop.
Kevin_M_Schafer is offline   Reply With Quote
Old 11-24-2011, 05:40 PM   PM User | #8
tracknut
Regular Coder

 
Join Date: Aug 2006
Posts: 906
Thanks: 4
Thanked 212 Times in 211 Posts
tracknut is an unknown quantity at this point
The point though is that those 80,000 pages shouldn't be static pages that you somehow edit up and store as 80,000 separate html files. They should be dynamically generated at the time that someone looks up a word in the dictionary. If that's your plan all along, I think you're fine and this is just a semantic discussion about whether one typically calls those dynamically generated pages "pages of the web site", or "dynamic information presented to the user". I don't think they are normally called "pages of the web site" - that's probably what set off alarm bells

Dave
tracknut is offline   Reply With Quote
Users who have thanked tracknut for this post:
Kevin_M_Schafer (11-24-2011)
Old 11-24-2011, 09:46 PM   PM User | #9
Kevin_M_Schafer
Regular Coder

 
Kevin_M_Schafer's Avatar
 
Join Date: Apr 2011
Location: Fairfax, Minnesota, U.S.A.
Posts: 482
Thanks: 97
Thanked 17 Times in 17 Posts
Kevin_M_Schafer is an unknown quantity at this point
tracknut or teed,

A question, though. Should my word pages -- numbering in the thousands -- have shtml suffixes -- such as "computer.shtml"? Do the pages need suffixes?

I want them to be called by a search and displayed inside an iframe or results box using SSI on the master page.

Thanks,
__________________
My keyboard is an IBM from 1993 and I like it that way. | Who is Dan Well? Everyone always says I know Dan Well.Building a web page is like building a birdhouse. Put it up there and watch 'em come. | Maintaining the aspect ratio of an image is more important than having a cold orange pop.
Kevin_M_Schafer is offline   Reply With Quote
Old 11-24-2011, 09:57 PM   PM User | #10
tracknut
Regular Coder

 
Join Date: Aug 2006
Posts: 906
Thanks: 4
Thanked 212 Times in 211 Posts
tracknut is an unknown quantity at this point
I guess we can't convince you not to make 80,000 files

Included files can have any name, so ".inc" or ".html" or anything else you like. Iframe'd files should be standard naming, .html, .php, .shtml - whatever the correct name would be (ie, if they're standard html, then I'd name them .html).

Dave
tracknut is offline   Reply With Quote
Old 11-24-2011, 11:24 PM   PM User | #11
Kevin_M_Schafer
Regular Coder

 
Kevin_M_Schafer's Avatar
 
Join Date: Apr 2011
Location: Fairfax, Minnesota, U.S.A.
Posts: 482
Thanks: 97
Thanked 17 Times in 17 Posts
Kevin_M_Schafer is an unknown quantity at this point
But if I don't create the pages for my dictionary, where will I get my dictionary content? There are over 80,000 words in the English language, and I don't have a database containing them. I have to build it.

I don't quite understand how I will code a word and its definition, and not have it placed separately than all the other words so that it will appear all by itself in a search result.

If it's possible to have all the words with their definitions on a continuous listing, how does the search differentiate from where one word and its definition leaves off and the next word starts?

For example:

marigold
Pronunciation: mar-i-gohld. Three syllables: mar-i-gold
1. The asteraceous plant Calendula officinalis. Any asteraceous plant of the genus Tagetes, esp. T. erecta. Garden herb with strong-scented leaves and yellow, red, or variegated heads of flowers. See Pot Marigold.
2. A puff-paste cake with almonds arranged to look like petals.

Is there a symbol or something that can be placed between the individual words and their definitions, something that will tell the search query to "stop here" and show the result and not go any farther than this one block of content?

I would gladly take a different route than having to build 80,000 pages -- because that will literally take 5 years and we're already getting prepared.

Do you think a continuous listing could be built with all the words in it?

Thanks for your help.
__________________
My keyboard is an IBM from 1993 and I like it that way. | Who is Dan Well? Everyone always says I know Dan Well.Building a web page is like building a birdhouse. Put it up there and watch 'em come. | Maintaining the aspect ratio of an image is more important than having a cold orange pop.
Kevin_M_Schafer is offline   Reply With Quote
Old 11-24-2011, 11:37 PM   PM User | #12
tracknut
Regular Coder

 
Join Date: Aug 2006
Posts: 906
Thanks: 4
Thanked 212 Times in 211 Posts
tracknut is an unknown quantity at this point
Is there anyone on your team that knows databases? I'm not trying to insult, but this is extremely simple stuff and I'd think that with the prospect of 5 years of development coming up, you'd have someone on board to help design this thing.

A database has columns, and you might have a column for "word" and another column for "definition". When you do a search, you'd search within the "word" column for "marigold" without fear of finding another word who's definition happens to include the word "marigold".

Dave
tracknut is offline   Reply With Quote
Users who have thanked tracknut for this post:
Kevin_M_Schafer (11-25-2011)
Old 11-25-2011, 12:13 AM   PM User | #13
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
How do you think a HUGE site like amazon.com, that I think it would be safe to say, sells 10's, maybe 100's of thousands of items, how do you think they do it? Do you think they build a page for every single item? Each of those items have descriptions, sizes, colors, prices, all generated from a database.
__________________
Teed
teedoff is offline   Reply With Quote
Users who have thanked teedoff for this post:
Kevin_M_Schafer (11-25-2011)
Old 11-25-2011, 06:12 AM   PM User | #14
Kevin_M_Schafer
Regular Coder

 
Kevin_M_Schafer's Avatar
 
Join Date: Apr 2011
Location: Fairfax, Minnesota, U.S.A.
Posts: 482
Thanks: 97
Thanked 17 Times in 17 Posts
Kevin_M_Schafer is an unknown quantity at this point
tracknut,

Thanks. Okay, I'm just curious how, when a word is called from the "word" column, how does the correct definition get chosen? How does the page code know what definition to pull out of the database after it pulls the word?

Even with a database, it's still going to take years to enter all the data, but it would sure beat having to worry about code and individual pages.

This is really interesting.
__________________
My keyboard is an IBM from 1993 and I like it that way. | Who is Dan Well? Everyone always says I know Dan Well.Building a web page is like building a birdhouse. Put it up there and watch 'em come. | Maintaining the aspect ratio of an image is more important than having a cold orange pop.
Kevin_M_Schafer is offline   Reply With Quote
Old 11-25-2011, 08:38 AM   PM User | #15
Frankie
Regular Coder

 
Join Date: Sep 2011
Posts: 309
Thanks: 3
Thanked 35 Times in 35 Posts
Frankie is an unknown quantity at this point
Quote:
Originally Posted by Kevin_M_Schafer
when a word is called from the "word" column, how does the correct definition get chosen? How does the page code know what definition to pull out of the database after it pulls the word?
See here: http://www.w3schools.com/sql/default.asp.
__________________
Frank

How to: Target IE in, Position in, Center in, Create a Fixed ('Sticky') Footer with, and Create a Drop-Down/Fly-Out Menu with CSS: Website Laten Maken Amsterdam.
Frankie is offline   Reply With Quote
Users who have thanked Frankie for this post:
Kevin_M_Schafer (11-25-2011)
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:59 AM.


Advertisement
Log in to turn off these ads.