posted
I finally got back to working on my website, but I'm stuck again. I'm trying to put pages of pictures up, and right now they're all alligned to the left. I want to make them nice and even (about 3 across) without using a bunch of spaces (& nbsp;) to format it.
<table> <TR><TD><IMG tag 1></TD><TD><IMG tag 2></TD><TD><IMG tag 3></TD><TR> <TR><TD><IMG tag 4></TD><TD><IMG tag 5></TD><TD><IMG tag 6></TD><TR> </table>
posted
Dagonee, thanks a lot! Would you happen to know how to put a little more space between the cells?
Posts: 4174 | Registered: Sep 2003
| IP: Logged |
posted
Add cellspacing="PX", where PX = Number of pixels to space between them, to the inside of the <table> tag. You can also play with the cellpadding number - it's hard to explain, but easy to grasp by putting in different numbers for each. e.g.:
posted
Dagonee's way will work, but it uses tricks of the Devil! If you want to do this using the One True Way(tm)! then you should use divs, spans, and CSS for formatting.
posted
You can't count on any current web browser to fully support CSS even now But they support enough to make using css more effective and cleaner.
CSS is a way of removing the "presentation" from the "layout". I'd recommend looking at w3schools.com for info if you care. CSS allows someone to change spacing quickly without finding the twenty places it's defined in the HTML. You change it once in the CSS and refresh the page.
posted
CSS is not that hard, and I like it and use it, but I think that a person who is not very familiar with HTML basics would have a hard time with CSS.
Posts: 4534 | Registered: Jan 2003
| IP: Logged |
posted
It seems as though you are making a pretty simple website, and I think it would be ok to just use tables to get the thing up and running. I would though slowly start incorporating CSS starting out with just fonts and colors, and work your way into completely migrating divs, spans, and CSS. That's how I learned anyway.
Posts: 1015 | Registered: Aug 2001
| IP: Logged |
posted
Actually, I'd say a photo album is probably semantically closest to a table among the choices in HTML. So a table would be fine even in a CSS site. Of course, that loses you the automatic wrapping you can get with "div's and span's" CSS, so if you're going the css route unless you have something determining the width elsewhere its better to avoid tables.
Of course, the capitalized tags in your code are still the devil, dags.
posted
Hmm, I'm curious: how would you do this nicely with divs + spans + css? I know a little css, but not a whole lot.
Posts: 1810 | Registered: Jan 1999
| IP: Logged |
quote:Of course, the capitalized tags in your code are still the devil, dags.
You whippersnappers with your fancy lowercase coding. Back in my day, we only had capital letters. And we only had 16 colors, if shades of green are colors. And we liked it!
posted
Speaking of having only caps, I recently had the interesting experience of logging in to a linux machine while caps lock was on. You should try it sometime.
Posts: 1810 | Registered: Jan 1999
| IP: Logged |