GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Designers - some help with CSS (https://gfy.com/showthread.php?t=1043961)

donnie 11-01-2011 09:08 AM

Designers - some help with CSS
 
I am trying to make my titles with h2 tag a bit nicer and I want to have a dot before any text. Something like this:

• Hello

In my CSS I have this:

h2
{
font-family: Times New Roman, serif;
font-size: $theme_headline_size_large;
letter-spacing: -1px;
margin-bottom: 10px;
color: #ffffff;
text-transform : capitalize;
font-weight: normal;
}

Is it possible to add something so I get that dot before the text? And to make it even more complicated I would like the dot to be of a different color than rest if the text :)

AaronM 11-01-2011 09:15 AM

http://lmgtfy.com/?q=css+bullet+point

UniqueD 11-01-2011 09:18 AM

you could put the h2 inside an unordered list
<ul>
<li>
<H2>HEYOO</h2>
</li>
</ul>

The Truth Hurts 11-01-2011 09:19 AM

Code:

h2:before {content: "? ";}

MetaMan 11-01-2011 09:20 AM

put the colored bullet point as an image. then move the text over with left padding. then possiton the bullet point in the vertical of the text.

The Truth Hurts 11-01-2011 09:26 AM

to change the color.. which i missed.

Code:

h1:before {color:red; content: "• ";}

Overload 11-01-2011 09:29 AM

Quote:

Originally Posted by The Truth Hurts (Post 18529689)
Code:

h2:before {content: "? ";}

ehh, shudnt that be
Code:

h2:before {content: "&middot; ";}
???

donnie 11-01-2011 09:33 AM

Quote:

Originally Posted by The Truth Hurts (Post 18529708)
to change the color.. which i missed.

Code:

h1:before {color:red; content: "? ";}

Taht worked great! Thank you so much for this!

V_RocKs 11-01-2011 09:35 AM

I saw this coming...

The Truth Hurts 11-01-2011 09:44 AM

Quote:

Originally Posted by Overload (Post 18529723)
ehh, shudnt that be
Code:

h2:before {content: "&middot; ";}
???

that would just show &middot; literally..

alternative to using the • and a space in there would be

content: "\2022\A0";


All times are GMT -7. The time now is 02:37 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123