Jump to content

Recommended Posts

Posted

You don't need to use separate classes in span tags unless you want the two words to have different styles.

 

The reason the words are below the box is because of the default top margins which browsers use, they are different in each browser and because your font size is large, the margin is also larger than normal, so add margin-top: 5px; to the class:-

 

.branding{ margin-top: 5px;

font-family: Constantia,

"Lucida Bright", Lucidabright,

"Lucida Serif", Lucida,

"DejaVu Serif", "Bitstream Vera Serif",

"Liberation Serif", Georgia, serif;

font-style: italic;

font-size: 30pt;

color: red;

font-weight: bold;

text-decoration: none;

text-align: left;

}

 

If you want the words to center, change text-align: left; to text-align: center;

 

using your original markup:

William Bradley Rouse

 

For flush left bottom of the box, leave text-align: left; and adjust the top margin (margin-bottom is unreliable, using a bottom fix often doesn't work).

 

IE7, IE8 and Firefox and other browsers should be the same if you state the margin-top.

Posted

Thank you.

I have another question relating to the same style. I wanted to use this description:

text-shadow:4px 4px 8px blue;

This works only in Safari, but not in Chrome, IE or Firefox. Does anyone know why?

Regards!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...