pixelravespixelraves
September
13
yaulh


Categories : css, web

The purpose of CSS is to allow the designer to define formatting details such as fonts, element sizes, and colors, and apply those formatting to HTML pages. Show below are some of the different methods to apply CSS.

lnline Styles
The simplest method of adding CSS styles to your web pages is to use inline styles. Its applied via style attribute. Inline style do not require selectors. All you need is only a style declaration. It clearly identifies the element to which the style is to be applied. See example below.

defining styles with css - inline styles

The disadvantage of this method is they can’t be reused. In another way, its means if you want to apply the style above to another p element, you will have to type it again in that element’s style attribute. This will also make the page difficult to maintain. Its because once you would like to change a particular thing ex. the color element, you will have to go through all the styles and change one by one.

Embedded Styles
This style uses style element to apply to your web page. You can declare any number of CSS styles by placing them between the opening and closing <style> tags. See example below.

defining styles with css - embedded styles

The type attribute specifies the language that you’re using to define your styles. CSS is the only language in wide use at the time of writing, and is indicated with the value text/css.

One of the disadvantage is, if you want to use your predefined styles throughout your website, you’ll need to add the style code at the top of every pages. Hence, what I would suggest is to use the external style sheet.

External Style Sheets
An external style sheet is a file with the extension of .css. It contains all your predefined styles. You can link to this file by inserting the below code into you web pages. The benefit of creating this file is, when you make a change to any style on this .css file, it will affect all the pages that links to it. Then you won’t have to bother to change page by page.

This is the code to link your web pages to an external style sheet.

defining styles with css - external style sheets


Tags : , ,

September
11
yaulh


Categories : web, wordpress

In the process of designing PixelRaves, I’ve came across a some of the best blog themes. Some of these designs are free for use. Mainly, they’re attractive because they use small details to decorate the site, use colorful header and they’re structured properly for the ease of reading. In my opinion, proper structure is very important to present the contents of your blog to the viewers.

Click on screen shots to get to the sites. Let me know if I’ve missed out any good design. Let me know in the comments!

Web Designer Wall
Web Designer Wall

Larissa Meek
Larissa Meek

Design Disease
Design Disease

Ikram Zidane's Digital Playground
Ikram Zidane’s Digital Playground

N.Design Studio
N.Design Studio

JSBlog
JSBlog

Gapers Block
Gapers Block

Elliot Jay Stocks
Elliot Jay Stocks

Ordered List
Ordered List

The Freelance Blog
The Freelance Blog



Earn $$ with WidgetBucks!

Advertise With Us

Text Link Ads

Links: Sponsored


Links: Photography


Tags

action adobe adobe photoshop express adobe lightroom adsense application blog calendar camera chronological Circular Polarizer color compact camera compression concert convention converging verticals copy paste CPL cross processing css design diffuser digital camera DIY download drawback effect elephant extreme contrast feng shui filter fireworks flash folder font fonts free free operating system ubuntu 7.10 gutsy gibbon linux freeware fring full moon gary fong genting gift glass google graphic guide holiday icon illustrated illustration image images internet connection iphone iphone belkin diy earphone jack plug iphone free screen capture snap iphone unlocked jailbroken jailbreak activated maxis ziphone firmware free jacky cheung jpeg juniper juniper champs kuala selangor landscape layer mask lens licensing lightsphere lillian too logo macro nikon dk21m magnifying eyepiece movie nature ND network Neutral Density Nikon d90 d80 live view active d lighting ISO6400 ISO no follow organizer pet photo photo album photo editor photo editing software photography photography Camaera Review Pros Cons Panasonic Lumix LX2 Fujifilm Finepix F31fd photography camera fujifilm f100fd f31fd f50fd iso 12800 photography Camera lomo lomography supersampler film photography common mistake problem photography DSLR Review 50mm Nikkor Nikon f1.4 f1.8 comparison test photography tips hold camera DSLR stabilizer photography tips reflector reduce hash shadow macro lighting photoshop photoshop duotone black white B&W step by step photoshop tilt shift effect photoshop actions TRA Totally Rad picasa plugin print pro retouch professional release cable remote control review review internal pop up flash diffuser photography scenery sekinchan showcase smart object software stock styles sunset techcrunch techniques template the 300 themes tips tools trend tripod urban vector video file vlc player voip wallpaper web web design website website templates widget wordpress youtube
what's raving

pixelraves// Why pixelraves? Everything you see on the screen is made up of pixels, don't you think? This blog is mainly design and photography related. The purpose there is to share the tips and tricks. Ocasionally you'll find some cool gadgets or even nintendo ds games being introduced here. Its all the fun stuffs. Stay tuned!

the contributors

yau // web design & development, print design, resume
She's a web designer, currently working and also doing freelance. She loves design, mostly on websites and ocasionally some print design too.
philipcs // photoblog, flickr album
He's a photography guru invited to share some of his photography tips and tricks for this blog. He's currently using a Nikon D80 and a compact Fuji F31fd.
photos from our flickr



Valid XHTML and CSS
© 2007 PixelRaves | Powered by Wordpress