Old 12-19-2003   #1 (permalink)
Incredible Indelible Etiquette
 
Young Spartan's Avatar
 
Join Date: Oct 2003
Location: Hobe Sound, Florida
Posts: 1,751

Send a message via AIM to Young Spartan Send a message via MSN to Young Spartan Send a message via Yahoo to Young Spartan
CSS Align...

I can't use <div align="blah"> in HTML Strict standards, so what is the CSS code that does it?

div {align: blah;}

didn't work, nor did

div {text-align: blah;}

because I need to align tables and images as well.

What is it Digital?
Young Spartan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 12-20-2003   #2 (permalink)
Not Here But I AM.
 
Join Date: Dec 2003
Location: Long Island, NY
Posts: 107

Send a message via AIM to Nikki
I don't think there's an equivalent in Strict. I don't see the harm in using something like...

<table class="divcenter"><tr><td>etc.etc.

and then in the CSS put divcenter {vertical-align: middle;}

...but that's not what you're looking for you said. I can't seem to place an equivalent for it.
__________________
Nikki is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 12-20-2003   #3 (permalink)
Incredible Indelible Etiquette
 
Young Spartan's Avatar
 
Join Date: Oct 2003
Location: Hobe Sound, Florida
Posts: 1,751

Send a message via AIM to Young Spartan Send a message via MSN to Young Spartan Send a message via Yahoo to Young Spartan
*sigh*

I guess I'll go against strict and just be unvalid...
Young Spartan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 12-20-2003   #4 (permalink)
Not Here But I AM.
 
Join Date: Dec 2003
Location: Long Island, NY
Posts: 107

Send a message via AIM to Nikki
It's not a matter of being invalid, it's a matter of who will be able to view your site correctly and who won't. Strict and Loose HTML determine that.
__________________
Nikki is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 12-20-2003   #5 (permalink)
Incredible Indelible Etiquette
 
Young Spartan's Avatar
 
Join Date: Oct 2003
Location: Hobe Sound, Florida
Posts: 1,751

Send a message via AIM to Young Spartan Send a message via MSN to Young Spartan Send a message via Yahoo to Young Spartan
I know..

I'm just meaning go invalid against strict.
Young Spartan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 12-21-2003   #6 (permalink)
Local Biorust Beast
 
Order's Avatar
 
Join Date: Oct 2003
Location: San Diego, CA, USA
Posts: 2,253

Send a message via AIM to Order Send a message via MSN to Order Send a message via Yahoo to Order
<div align="center">
<table>etc...
</div>

That is only what comes to mind.. and it is better then css, as it supported by all browsers.. and I thought it was HTML Strict... hmm
__________________
Order is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 12-21-2003   #7 (permalink)
Incredible Indelible Etiquette
 
Young Spartan's Avatar
 
Join Date: Oct 2003
Location: Hobe Sound, Florida
Posts: 1,751

Send a message via AIM to Young Spartan Send a message via MSN to Young Spartan Send a message via Yahoo to Young Spartan
The align attribute is not allowed in Strict, the div tag is, though.
Young Spartan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 12-21-2003   #8 (permalink)
Not Here But I AM.
 
Join Date: Dec 2003
Location: Long Island, NY
Posts: 107

Send a message via AIM to Nikki
can't you set it as a class?
__________________
Nikki is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 12-21-2003   #9 (permalink)
Incredible Indelible Etiquette
 
Young Spartan's Avatar
 
Join Date: Oct 2003
Location: Hobe Sound, Florida
Posts: 1,751

Send a message via AIM to Young Spartan Send a message via MSN to Young Spartan Send a message via Yahoo to Young Spartan
....example?
Young Spartan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 12-21-2003   #10 (permalink)
Not Here But I AM.
 
Join Date: Dec 2003
Location: Long Island, NY
Posts: 107

Send a message via AIM to Nikki
<div class="divcenter"><table><tr><td>etc.etc.

and in the CSS put divcenter and then set it to center.
__________________
Nikki is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 12-21-2003   #11 (permalink)
Incredible Indelible Etiquette
 
Young Spartan's Avatar
 
Join Date: Oct 2003
Location: Hobe Sound, Florida
Posts: 1,751

Send a message via AIM to Young Spartan Send a message via MSN to Young Spartan Send a message via Yahoo to Young Spartan
Quote:
Originally posted by Nikki
<div class="divcenter"><table><tr><td>etc.etc.

and in the CSS put divcenter and then set it to center.
Show me the CSS... thats what I don't know, the CSS code to center align tables, iimages and text.
Young Spartan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 12-23-2003   #12 (permalink)
Local Biorust Beast
 
Order's Avatar
 
Join Date: Oct 2003
Location: San Diego, CA, USA
Posts: 2,253

Send a message via AIM to Order Send a message via MSN to Order Send a message via Yahoo to Order
(Have some time)

Ok, he means to make a css class:

PHP Code:
.divcenter {aligncenter;} 
and then just assign it, it may not be 100% strict, but most sites are not anyhow.
__________________
Order is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT +1. The time now is 05:13 AM.
Content Relevant URLs by vBSEO 3.2.0

Design & Content © BioRUST 2008 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT