Internal or External - preCharge Forums
It shows that you are unregistered. Please register with us by clicking Here
preCharge Forums


Nav Green LeftNav Right
preCharge Forums > Website Design & Development > Website Design » Internal or External


Reply
Tcat Right
 
LinkBack Thread Tools Display Modes Tcat Right
Old 10-18-2006   #1 (permalink)
Tucker
Senior Member
 
Join Date: Oct 2006
Age: 23
Posts: 176
Default Internal or External

Some CSS applies to every page of your document, other CSS applies only to one page. Do you put the CSS that applies to a single page on an external stylesheet as well, or do you put it on the page?
__________________
Don't gain the world and lose your soul, wisdom is better than silver or gold.
~Bob Marley~
Tucker is offline   Reply With Quote


Old 10-18-2006   #2 (permalink)
Ajay
Senior Member
 
Ajay's Avatar
 
Join Date: Aug 2006
Age: 28
Posts: 755
Default Re: Internal or External

I seldom design pages that use a different set of styles from the rest of the site. It's bad idea to keep your styles changing unless you specifically need to.

If I do need to change something specific, it is either inline or in the page itself.

If it has to come on more than 5 pages, I put it in a seperate stylesheet
__________________
Ajay D'Souza

Techtites - Your daily dose of all things Tech!

Sir Arthur Conan Doyle | I Sent This

WebberZone Domains
Ajay is offline   Reply With Quote

Old 10-27-2006   #3 (permalink)
m3talc0re
Senior Member
 
m3talc0re's Avatar
 
Join Date: Jul 2006
Location: Alabama, USA
Age: 27
Posts: 306
Send a message via ICQ to m3talc0re Send a message via AIM to m3talc0re Send a message via MSN to m3talc0re Send a message via Yahoo to m3talc0re
Default Re: Internal or External

I use the @import on specific pages.
__________________
"The real hell is your life gone wrong."
<---DONATIONS NEEDED, CLICK TO READ MORE--->
Quote:
Originally Posted by Dana View Post
oh no, you misunderstood me (stick your tongue back in, lol)...I found your post very informative but was referring to your first line only, hehee..
m3talc0re is offline   Reply With Quote

Old 10-28-2006   #4 (permalink)
Ajay
Senior Member
 
Ajay's Avatar
 
Join Date: Aug 2006
Age: 28
Posts: 755
Default Re: Internal or External

what exactly is the purpose of @import?
__________________
Ajay D'Souza

Techtites - Your daily dose of all things Tech!

Sir Arthur Conan Doyle | I Sent This

WebberZone Domains
Ajay is offline   Reply With Quote

Old 10-28-2006   #5 (permalink)
diddy1
Blogging Moderator
 
diddy1's Avatar
 
Join Date: Jul 2006
Location: Da Hood
Posts: 466
Send a message via AIM to diddy1 Send a message via MSN to diddy1 Send a message via Yahoo to diddy1
Default Re: Internal or External

Quote:
Originally Posted by Ajay View Post
what exactly is the purpose of @import?

To point the browser to load the css file that the import points to. In this case you can make two css files; one with the css you need for those pages which require one of the css files, and a second one with the first one's css as well as the new changes for the other pages. And you can import each according to the need.

Thank You
__________________
All About Google Adsense
Keep up with what's going on in the Search Engine Optimization world check out Search Engine Optimization news today.
Globalwarming Awareness2007
diddy1 is offline   Reply With Quote

Old 10-29-2006   #6 (permalink)
Ajay
Senior Member
 
Ajay's Avatar
 
Join Date: Aug 2006
Age: 28
Posts: 755
Default Re: Internal or External

Makes sense now, but I wonder why not just use the normal method of linking CSS files, using link
__________________
Ajay D'Souza

Techtites - Your daily dose of all things Tech!

Sir Arthur Conan Doyle | I Sent This

WebberZone Domains
Ajay is offline   Reply With Quote

Old 10-31-2006   #7 (permalink)
VP
Member
 
VP's Avatar
 
Join Date: Jul 2006
Location: Espoo, Finland
Age: 22
Posts: 79
Send a message via ICQ to VP Send a message via AIM to VP Send a message via MSN to VP Send a message via Yahoo to VP
Default Re: Internal or External

@import only works with new browsers, for example IE 4 and lower don't support it and thus they don't receive the styling and then mess up the layout with their lacking CSS support.
__________________
Indiana Jones
VP is offline   Reply With Quote

Old 11-01-2006   #8 (permalink)
diddy1
Blogging Moderator
 
diddy1's Avatar
 
Join Date: Jul 2006
Location: Da Hood
Posts: 466
Send a message via AIM to diddy1 Send a message via MSN to diddy1 Send a message via Yahoo to diddy1
Default Re: Internal or External

Quote:
Originally Posted by VP View Post
@import only works with new browsers, for example IE 4 and lower don't support it and thus they don't receive the styling and then mess up the layout with their lacking CSS support.
That's why you have to stick to basic designs when it comes to websites. Also for those special browsers you can design a page just for them and use a simple detecting script to direct those who use those browsers to a page that doesn't use css.

Thank You
__________________
All About Google Adsense
Keep up with what's going on in the Search Engine Optimization world check out Search Engine Optimization news today.
Globalwarming Awareness2007
diddy1 is offline   Reply With Quote

Old 02-13-2007   #9 (permalink)
googoo
Member
 
Join Date: Feb 2007
Posts: 42
Default Re: Internal or External

I use CSS as external file, so in the header, in "style" part, I usually put where is my CSS file located, by that way I save lots of space of every html page of my website. I heard it's also faster than putting in the document.
googoo is offline   Reply With Quote

Old 02-13-2007   #10 (permalink)
StarLab
Forum Management
 
StarLab's Avatar
 
Join Date: Jul 2006
Location: Ontario, Canada
Age: 47
Posts: 1,465
Send a message via ICQ to StarLab Send a message via MSN to StarLab
Default Re: Internal or External

I have my main CSS file containing a few @import:

@import url("layout.css"); /*layout css file*/
@import url("editor.css"); /*editor styles*/
@import url("custom.css"); /*Use this file to customize your website*/

The layout.css simply contains CSS for sizing and positioning of various elements

The editor.css contains styles for the editor plugin

The custom.css is where all appearance styles are defined. (Font colors, sizes, backgrounds, etc.)

Not only does this make things easier to find, it also makes adding more style sheets a snap. No cut 'n pasting into your original CSS file is required. Just add it as an @import.

This might start some argument, but I do not design for ancient browsers. There are simply too many other things to worry about these days.
__________________
Larry
[Torn Elements] - Regaining the passion in design.
[LarryMonte.Com] - Personal Blog (WIP)


"Writing is the most fun you can have by yourself!" --Terry Pratchett
----
Gorgeous On Life - The world from a Cat's point of view!
StarLab is offline   Reply With Quote

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
what is the use of internal keyword? agaba175 .NET 1 08-04-2006 02:45 PM
Internal Server Error with 301 Redirect kevin Site and Server Administration 0 08-01-2006 02:39 PM
External job with enterprise manager 10g gabriel Programming 0 07-29-2006 02:30 PM


footer left
All times are GMT. The time now is 08:08 PM.

DISCLAIMER: preCharge Risk Management is not responsible for any opinions, advice or comments expressed on the preCharge Community Forums.
preCharge® is a registered trademark of preCharge Risk Management | chargeback protection | Merchant Account Blog

Powered by vBulletin
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0 RC6

Debt Help | Cleaning Supplies | Compare Mortgages | Cheap Home Insurance | House Insurance

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49