English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I am trying to size a font and align this bit of text for a web page. The problem with this is that every where I look to size and align text with css they use

...I'm working in a style sheet so with the

it skips just enough space to get the text cut in half by the border of my div

here is the code


Eureka Seven



So is there any way to replace the P with something that doesn't have to skip a line?
P.S.I have already tried H1 P Li and I b

2007-03-18 05:30:27 · 3 answers · asked by ? 2 in Computers & Internet Programming & Design

thanks for trying but sadly it still doesn't work...It's a myspace profile and I've pretty much destroyed it by trying to hide everything and go with my own style sheet...anyway like I said thanks for the help but still not working

2007-03-18 06:11:58 · update #1

also is there anyway to use v align in html without a table??

2007-03-18 06:17:32 · update #2

3 answers

You could try using the

 tag that way it will theoretically render exactly as you enter it. 

It is very difficult to answer your question with just a snip of code due to the cascading nature of CSS, it could be something in a div further up the tree that is causing your problems.

2007-03-21 22:13:21 · answer #1 · answered by EspritDogs 2 · 0 0

I don't fully understand what you are trying to ask, so here goes nothing.

If you are using CSS, then you shouldn't be specifying any fonts in HTML.

Looking at the snip of code there, you are placing your style inline with the HTML, that's a no no. Keep your style sheet and html seperate.


A

tag marks the beginning and end of a paragraph and will always add a full line of spacing after the closing



A
tag marks a break, it will not add in a line of spacing, it simply moves text to the next line.

Below is a basic style sheet for you to play with.

BODY, TD {
background: #696969;
color : silver;
font-family : "Bookman Old Style", "Times New Roman", serif;
font-size: 14px;
text-align: left;
}

H2 {
font-size: 14pt;
}

H3 {
font-size: 15pt;
font-style: italic;
font-family: sans-serif;
}

H4 {
font-family: sans-serif;
font-size: small;
}

A {
color: white;
}

A:Hover {
color: yellow;
}

HR {
height: 1pt;
}

2007-03-18 12:44:40 · answer #2 · answered by ? 5 · 0 0

Use span
You shouldnt need the since you already told the style to be italics.

Eurek... Seven

notice I called this m but you can call it anything you like.
Also you may want to remove the
it does cause the text that follows to be on a new line!

2007-03-18 12:44:16 · answer #3 · answered by Tracy L 7 · 1 0

fedest.com, questions and answers