Stop Microsoft

Miscellaneous => Programming & Networking => Topic started by: Calum on 12 June 2003, 22:20

Title: quick html query
Post by: Calum on 12 June 2003, 22:20
in the following, i want the table to line up against the left edge of the page, in the same way as the heading does, but it won't no matter what tags i put around it.
anybody know how to do this?

Code: [Select]

thanks in advance etc
Title: quick html query
Post by: flap on 12 June 2003, 22:55
If you set border to 1 you'll see that the table is actually lining up against the side. It's just that the column headers are centered.
Title: quick html query
Post by: Pantso on 14 June 2003, 04:27
flap's right Calum. Just set the border value to "1" and you'll see that the table is actually aligned against the left edge of the page.
Title: quick html query
Post by: beltorak0 on 15 June 2003, 00:49
was this more or less what you had in mind?

Code: [Select]

Or is there a reason you would not want the title as part of the table?
Title: quick html query
Post by: xyle_one on 15 June 2003, 01:16
to get the table to sit on the edge, i added margin tags-
Code: [Select]
[ June 14, 2003: Message edited by: ecsyle ]

[ June 14, 2003: Message edited by: ecsyle ]

Title: quick html query
Post by: jasonlane on 2 July 2003, 22:02
Code: [Select]

Sorry guys but that wont be valid, left and right margin & marginwidth have to be expressed as CSS not as Markup attributes, try validating on W3C

Code: [Select]

(will produc a 20px top margin) OR

Code: [Select]

OR Even!

Code: [Select]


All in the interests of standards and rightness, not trying to flame  (http://tongue.gif)  
Title: quick html query
Post by: Refalm on 2 July 2003, 23:34
I've put my beta page through W3C's validator, and I must say it's HTML 4.01 compliant. I'd never do it in XHTML though, it's just... ehm... kinda strange to me. CSS and PHP (HTML 4.01 compliant) is what I use on my beta homepage, and it works great.
Title: quick html query
Post by: xyle_one on 3 July 2003, 02:23
i didn't valiadate mine. Margin tags were the first thing to come to mind  (http://tongue.gif)  

Next time though.. you can be sure i will run it through the validator.
Title: quick html query
Post by: jasonlane on 3 July 2003, 16:26
quote:
Originally posted by Refalm:
I've put my beta page through W3C's validator, and I must say it's HTML 4.01 compliant. I'd never do it in XHTML though, it's just... ehm... kinda strange to me. CSS and PHP (HTML 4.01 compliant) is what I use on my beta homepage, and it works great.


But XHMTL is so much better Refalm, divisions of concerns and all that. At then end of the day it's what ever you feel comfortable with  ;)