You are not logged in.

Announcement

Forum database was corrupt and an old backup was restored as temporary replacement. Registrations closed until the database is recovered. Please ask questions using the Contact form

#1 01-04-2013 03:20:33

Infopath
Contributors
Registered: 22-03-2013
Posts: 27
Website

Exact color of title

What is the exact color of the title? I wanted to add a beta superscript and the beta word was in black. This is my code

<h1><a href=""><?php echo $siteName?></a><sup>BETA</sup></h1>

$siteName comes in white. but superscript is in black. What's the exact color of the title? I know I can say style = color:#FFF but I wanted the exact code. Couldn't find in the CSS (my CSS knowhow is bad)

Offline

#2 01-04-2013 12:10:33

Emil
Moderator
From: in a shipyard
Registered: 15-03-2013
Posts: 106

Re: Exact color of title

Option1. Considering that you want the sup tag outside the a tag. Add in theme.css this:

#header h1 sup{/*superscript in header */
	color:#FFF;
	font-size:46px;
	text-decoration:none;
}

In this option1 css code you can change or add anything you want, it will only affect the superscript

Option2. The code for the title header is in same file theme.css

#header h1 a{/*the big header text */
	color:#FFF;
	font-size:46px;
	text-decoration:none;
}

, so, to use only the code in option2, you'll need to add your sup tag inside the a tag, like this:

<h1><a href=""><?php echo $siteName?><sup>BETA</sup></a></h1>

Last edited by Emil (01-04-2013 12:28:16)


Good advice is often confusing, but example is always clear.

Offline

#3 05-04-2013 18:20:42

Thomas
Administrator
Registered: 10-03-2013
Posts: 897

Re: Exact color of title

What Emil says is right. The color is set for the a tag in the h1, not for the full h1 tag.

Offline

Board footer

Powered by FluxBB