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 (1 - 5)
*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.
 
SMiLEEFORMEE
post Jul 22 2005, 10:06 AM
Post #3


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

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



blink.gif i'm confused about the h1 part lol sry but i want it for the dates (on my comments) and all the headings on the left modules

another example: http://www.myspace.com/tcunningham1589

and he has a createblog so if you see this tom please help!
 
*mipadi*
post Jul 22 2005, 10:23 AM
Post #4





Guest






Well, you just apply the style to whatever tag you want styled in that way.

The person whose blog you referenced uses <span> tags, it seems.
 
SMiLEEFORMEE
post Jul 22 2005, 12:01 PM
Post #5


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

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



it's not working. and im jus completely lost wacko.gif
 
SMiLEEFORMEE
post Jun 29 2006, 10:12 AM
Post #6


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

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



ok nvm i got it, this topic can be closed
 

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