Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-01-2011, 09:08 AM   #1
donnie
Confirmed User
 
Join Date: Jan 2003
Posts: 1,630
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
donnie is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-01-2011, 09:15 AM   #2
AaronM
Too lazy to set a custom title
 
AaronM's Avatar
 
Industry Role:
Join Date: Oct 2001
Location: ┌∩┐ ◣_◢ ┌∩┐
Posts: 46,909
http://lmgtfy.com/?q=css+bullet+point
AaronM is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-01-2011, 09:18 AM   #3
UniqueD
Confirmed User
 
UniqueD's Avatar
 
Industry Role:
Join Date: Aug 2004
Location: Barcelona
Posts: 1,022
you could put the h2 inside an unordered list
<ul>
<li>
<H2>HEYOO</h2>
</li>
</ul>
UniqueD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-01-2011, 09:19 AM   #4
The Truth Hurts
Hb17uaaldwM
 
The Truth Hurts's Avatar
 
Industry Role:
Join Date: Nov 2002
Location: In Your Skull
Posts: 15,150
Code:
h2:before {content: "? ";}
The Truth Hurts is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-01-2011, 09:20 AM   #5
MetaMan
I AM WEB 2.0
 
Industry Role:
Join Date: Jan 2003
Posts: 28,682
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.
MetaMan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-01-2011, 09:26 AM   #6
The Truth Hurts
Hb17uaaldwM
 
The Truth Hurts's Avatar
 
Industry Role:
Join Date: Nov 2002
Location: In Your Skull
Posts: 15,150
to change the color.. which i missed.

Code:
h1:before {color:red; content: "• ";}
The Truth Hurts is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-01-2011, 09:29 AM   #7
Overload
Confirmed User
 
Overload's Avatar
 
Industry Role:
Join Date: Jul 2005
Location: Beck's City, North Teutonia
Posts: 3,185
Quote:
Originally Posted by The Truth Hurts View Post
Code:
h2:before {content: "? ";}
ehh, shudnt that be
Code:
h2:before {content: "&middot; ";}
???
__________________
There aren't enough faces and palms on this planet for an appropriate reaction to religion.
Overload is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-01-2011, 09:33 AM   #8
donnie
Confirmed User
 
Join Date: Jan 2003
Posts: 1,630
Quote:
Originally Posted by The Truth Hurts View Post
to change the color.. which i missed.

Code:
h1:before {color:red; content: "? ";}
Taht worked great! Thank you so much for this!
donnie is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-01-2011, 09:35 AM   #9
V_RocKs
Damn Right I Kiss Ass!
 
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,391
I saw this coming...
V_RocKs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-01-2011, 09:44 AM   #10
The Truth Hurts
Hb17uaaldwM
 
The Truth Hurts's Avatar
 
Industry Role:
Join Date: Nov 2002
Location: In Your Skull
Posts: 15,150
Quote:
Originally Posted by Overload View Post
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";

Last edited by The Truth Hurts; 11-01-2011 at 09:46 AM..
The Truth Hurts is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.