1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Want to style a small bit of text within a heading

Discussion in 'CSS' started by Tom Alex, Jan 10, 2011.

  1. #1
    Hi, I'm working on this site: LINKhttp://whatismatt.com/demo/

    As you can see in the heading, the 'g7+' bit is purple. That much I've done, but I want the whole heading to be lowercase caps, with the 'g7+' to remain in lowercase lettering, but I'm struggling to edit the header and style sheet to achieve this.

    Any suggestions?
     
    Tom Alex, Jan 10, 2011 IP
  2. developerpanda

    developerpanda Peon

    Messages:
    104
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    .head { text-transform: lowercase; } in your theme's style.css should lowercase the heading.
     
    developerpanda, Jan 10, 2011 IP
  3. Tom Alex

    Tom Alex Active Member

    Messages:
    513
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Yes, but the problem I'm having is that I want a part of the heading, in the middle of it, in lowercase, and the text around it in small-caps.

    I'm working with this:

    .head
    	{
    	font: 400 3.5em 'helvetica','times new roman','lucida sans','lucida sans unicode','verdana',sans-serif;
    	color: #000;
    	margin-left: 170px;
    	padding-top: 25px;
    	[B]font-variant: small-caps[/B];
    	}
    
    .head span {
    	margin-left: 0px;
    	color: #800080;
    	[B]text-transform: lowercase[/B];
    	}
    Code (markup):
    But the font-variant seems to override the text transform.
     
    Tom Alex, Jan 10, 2011 IP
  4. developerpanda

    developerpanda Peon

    Messages:
    104
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Oh now I see. Then do .head span { font-variant: normal; }
     
    developerpanda, Jan 10, 2011 IP
    Tom Alex likes this.
  5. Tom Alex

    Tom Alex Active Member

    Messages:
    513
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #5
    Excellent. Thank you.
     
    Tom Alex, Jan 10, 2011 IP