pixelravespixelraves
October
9
yaulh


Categories : css

By default, whenever you add a link in your webpage, its underlined and displays in a different colour from the rest of the text. However, there might be times when you want to remove the underline. Here’s how to do it.

I uses the text-decoration property to remove the underlines from link text. By default, the browser will set it to underline. To remove the underline, all you need to do is to set the text-decoration property to “none”.

remove underline in links with css style

Is removing underline a bad idea?
Underlining links is a standard convention followed by all web browsers and, consequently, users expect to see links underlined. Removing the underline from links that appear within text can make it very difficult for people to realize that these words are in fact links, and not just highlighted text. There are other ways in which you can style links so they look attractive, and removing the underline is rarely, if ever, necessary.

Links that are used as part of a menu, or appear in some other situation in which the text is quite obviously a link—for instance, where the text is styled with CSS to resemble a graphical button—are a different story. If you wish, you can remove the underline from these kinds of links, because it should be obvious from their context that they’re links.


Tags : , ,

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 : , ,

Earn $$ with WidgetBucks!

Advertise With Us

Text Link Ads

Links: Sponsored


Links: Photography


Tags

action adobe adobe photoshop express adsense application blog calendar camera canon chronological Circular Polarizer color compact 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 gary fong genting gift glass google graphic guide high ISO 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 lens licensing lightsphere lillian too logo macro nikon dk21m magnifying eyepiece movie nature ND network Neutral Density Nikon D3 Nikon D300 no follow olympus organizer pet photo photo album photo editor 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 camera sony alpha a300 a350 live view pentamirror tilt photography common mistake problem photography DSLR Review 50mm Nikkor Nikon f1.4 f1.8 comparison test photography product editor choice pick outstanding 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 picasa plugin point & shoot print professional review review internal pop up flash diffuser photography samsung scenery sekinchan showcase smart object software sony stock styles sunset tamron photograhy nikon pentax d40 d40x d60 motor techcrunch techniques template the 300 themes tips tools trend 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