HTML/CSS Service

Advantages of separate stylesheets

Category: CSS Expert Ideas    |    472 views    |    Add a Comment  |   
There are lots of advantages of working this way, including:
  1. Reduced filesize - each CSS definition is written only once
  2. Reduced bandwidth - web browsers will remember (cache) the contents of CSS file, so don’t need to download the file again with each new page that uses it
  3. Easier updating - you only have to change styles in one place for them to change site-wide
  4. Separates the work of styling and creating content - you can create all your HTML pages first, applying sensible semantic markup, class names and IDs, and then do all your design work later on your style sheets.

Share/Save/Bookmark

 

CSS INCLUDE-SOURCE

Category: CSS, CSS Expert Ideas    |    955 views    |    1 Comment  |   

This property inserts another document into the current document, replacing the current element’s content. Any elements or CSS properties applied to or inherited by the current element are applied to the inserted content as well.

Example
div {
position: absolute;
top: 100px; left: 300px;
width: 200px; height: 200px;
border: thin solid black;
include-source: url(http://www.example.com/testpage.htm);
}
Possible Values
Value Description
[URL] An absolute or relative URL pointing to a document. If rendering of the document is not possible by the browser, it should be ignored and the regular element content be displayed instead.

Share/Save/Bookmark

 

One thing to do before starting a new project

Category: CSS Expert Ideas    |    242 views    |    1 Comment  |   

Clean your desk and desktop.

  • Clean up your desk. Getting rid of the visual clutter around you will establish an environment where creativity can flourish. [Jesse Bennett-Chamberlain]
  • Clean off your desktop. [Mike Davidson]
  • Clear everything else off your plate and remove all distractions. Multitasking isn’t as glorious as it’s been made out to be and often just slows things down. Starting a project with a clean slate is key and making the most of your first day can make all the difference. [Matt Brett]
  • Cleaning! My desk… the room… the house. I am compulsive cleaner. I often need to do some cleaning before getting into a new project. [Russ Weakley]
  • Tidy your desk. [Richard Rutter]

Read more…

Share/Save/Bookmark