Log In · Register

 
boxes around diff. areas
SMiLEEFORMEE
post Jul 22 2005, 09:40 AM
Post #1


not da vinci's mona lisa <3
*****

Group: Member
Posts: 644
Joined: Aug 2004
Member No: 39,781



i always wanted to know how to get these boxes around the certain areas of text. lol sry hard to explain but here : http://www.myspace.com/xo_sneaky

on her myspace on her modules the headings are all high lighted and bordered (interests, music, movies, books, etc. etc.) does anyone know the code for that?
 
 
Start new topic
Replies
*mipadi*
post Jul 22 2005, 09:59 AM
Post #2





Guest






Yes, use this:
HTML
<h1 style="background-color:#FF0000; color:#000000; padding:3px;">

You can also embed it as a stylesheet, so it applies to every instance of <h1>:
CODE
<style type="text/css">
h1 {
   background-color:#FF0000;
   color:#000000;
   padding:3px;
}
</style>

Note: The background color is set to red in that example; change #FF0000 to whatever color you wish. The text color is white; change #000000 to whatever color you wish. Padding is there to make the box a bit bigger (not run up against the edges of the text) but can be changed or removed entirely, if desired.

Also, this applies only to <h1> tags in the sample, but can apply to any tag you want; just change "h1" to the tag you want to style.
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: