Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Cascading Style Sheets _ how to put my borders and html in external css sheet

Posted by: KinkZ May 6 2012, 06:22 AM

p.one{
border-style:groove;
border-width:5px;
border-color:red;
height: 70px;
width: 370px;
text-transform:capitalize;
letter-spacing: 5px;
font-size:400%;
color:#25FA77;
margin:20px auto;} <--i want this border to be in external css sheet

with this html code for the words inside the border --> <p class="one"> all abt me!</p>

so i can use the border and text for my other pages

Help plzz..

Posted by: Frederiek May 6 2012, 07:45 AM

See http://htmlhelp.com/reference/css/style-html.html .

BTW, I wouldn't use the P as selector.
What if you would also want to use the .one class for another HTML element?

Posted by: KinkZ May 6 2012, 07:59 AM

QUOTE(Frederiek @ May 6 2012, 08:45 PM) *

See http://htmlhelp.com/reference/css/style-html.html .

BTW, I wouldn't use the P as selector.
What if you would also want to use the .one class for another HTML element?


hmm i got it tongue.gif but regarding as P being the selector... what else i should use??

Posted by: Frederiek May 6 2012, 09:52 AM

Just use .one.

If you're interested in knowing more about CSS selectors, I suggest you read the serie of articles by 456bereastreet.com, starting at http://www.456bereastreet.com/archive/200509/css_21_selectors_part_1/ .

Posted by: Frederiek May 6 2012, 11:26 AM

To add another interesting article: http://www.vanseodesign.com/css/css-selector-performance/ .

Posted by: KinkZ May 7 2012, 12:39 AM

aite mate.. thanks ... i look them up smile.gif

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)