Welcome to Bucaro TecHelp!

Bucaro TecHelp
HTTPS Encryption not required because no account numbers or
personal information is ever requested or accepted by this site

About Bucaro TecHelp About BTH User Agreement User Agreement Privacy Policy Privacy Site Map Site Map Contact Bucaro TecHelp Contact RSS News Feeds News Feeds

Attribute Selector

The attribute selector selects an html element by the value of an attribute. For example, the style definition below selects only anchor elements that have "http:" as part of their value string for the href attribute.

a[href^="http:"]
{
text-decoration: none;
border-bottom-style: dotted;
border-bottom-width: 1px;
}

<a href="http://bucarotechelp.com">Visit Bucaro TecHelp</a>

The style definition above causes the link to be underlined with a dotted line rather than the standard solid line. Buy using only relative links within your web site you might use this method to allow users to distinguish between internal and external links. The attribute selector works only with with browsers that support the CSS 3 standard.

More CSS Quick Reference:
• Set a Background Image
• Use an Embedded Style Sheet
• Style the First Line
• Set an Element's Overflow
• Pseudo-class Selectors
• Use an External Style Sheet
• Set the Text Color
• Use Inline Style
• Set Text Justification
• Set The Cursor Style

RSS Feed RSS Feed


Follow Stephen Bucaro Follow @Stephen Bucaro



Fire HD
[Site User Agreement] [Privacy Policy] [Site map] [Search This Site] [Contact Form]
Copyright©2001-2018 Bucaro TecHelp 13771 N Fountain Hills Blvd Suite 114-248 Fountain Hills, AZ 85268