View Full Version : Help on some centering, coloring, underlining
4th June 06, 10:47 AM
With the following sentence:
I love cookies. They rule!
How can I make the text centered?
How can I make They rule! red text and still keep everything centered in the text.
How can I Underline cookies and still keep everything centered and They rule! in red?
How can I make I love green and still keep cookies underlined, everything centered and
They rule! in red?
I'm pretty new to CSS/XHTML and this will help me a lot, thanks people :D
4th June 06, 10:53 AM
<span class="style1"><span class="style3">I love</span> <u>cookies</u>. <span class="style2">They rule!</span></span>
4th June 06, 11:02 AM
:D Thanks, is the first one HTML, or XHTML?
I need XHTML
The first one is still xhtml. Span is the text style. <div> as xhtml is the box style.
To center all your texts:
style1...& the rest...
<span class="style1...& the rest...
5th June 06, 09:28 AM
New problem, I'm not allowed to use the <u> tag :(
Can you clarify what you mean not allowed to use the <u> tag?
'cookies' text does showing underline
5th June 06, 11:00 AM
Yeah, the <u>-tag is dropped in XHTML 1.1 Strict, right?
just replace <u>cookies</u> with <em class="underline">cookies</em>
and add the following to the css:
Hope that'll help ya!
7th June 06, 05:11 PM
Weeeeeeeeee, thank you :D this can be closed now
8th June 06, 12:12 AM
Welcome to the forums, by the way... Davimert: Do you totally understand what has happened above or just trying to get this mini project done?
If you have any questions, people here are more than willing to explain if you listen and are willing to learn.
Good luck :)
vBulletin® v3.8.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.