Click to See Complete Forum and Search --> : Not sure how to do this...
newdles
01-26-2004, 10:43 AM
Hello everyone. I have just finished laying out a tiny group of html's. They are very plain now and will stay that way for the most part. Few things will be added later but not much.
Anyway, I'm having a problem figuring out something.
http://24.99.56.57/dll.html
If you click that link and then browse through for a few different links (click dll group "a", then group "b", then group "c", then group "d") you'll notice that they are spaced different. I'd like to have them all spaced the same if it's at all possible. Could someone tell me how to do this?
Thanks,
Brandon
crh3675
01-26-2004, 10:51 AM
You need to force TD cell widths.
<td align="left" width="350">text</td>
--Craig
TheBearMay
01-26-2004, 10:53 AM
The long version is:
http://www.w3.org/TR/1999/REC-html401-19991224/struct/tables.html#h-11.2.4.4
the short version: consider the use of <colgroup> and <col width="x"> where x is the number of pixels.
newdles
01-26-2004, 11:32 AM
I tried both to the best of my knowledge and things just didn't work out right. Thanks for the help though but I probably just screwed it up when I entered the new coding.
I've got to get ready for work today and I'll experiment more later. I don't know anything about html so this is really hard to me.
Thanks for the help,
Brandon
DaveSW
01-26-2004, 11:52 AM
How about as a simple quick solution, put this in the head section of your document
<style type="text/css"><!--
td {
width: 45%;
}
--></style>
The problem is that the width your left column, containing the name of the dll, is dictated by the amount of text in it.
If you were to enter a width for it, this would then solve your problem. The above code enables you to specify the with of every table cell on the page, without altering each one.
newdles
01-27-2004, 02:14 AM
Well, I've tried them to no luck. Specifying a width of 45% just made everything span out further. I really don't want that as I'll be adding content to the body of the page eventually. Also, even if I didn't it still didn't turn out right. Once I added the 45% width to it it just spanned each page a different size just much wider. Each page still had it's own spacing differences. I've got no idea what is wrong.
Thanks for all your help though. I really appreciate the effort.
DaveSW
01-27-2004, 06:42 AM
Try
<style type="text/css"><!--
td {
width: 300px;
}
--></style>
instead.
newdles
01-27-2004, 09:32 AM
Thanks :) Appreciate your help. The code worked and now the site looks a good bit better.