HTML help: I need some help with a web page layout for my Computer Tech class. - Help.com

Arkia Valkair
offline Verified (7 months, 1 week) Visit Arkia Valkair's shoutbox
An Unknown Location

I need some help with a web page layout for my Computer Tech class.

So far I have the page divided into 3 sections vertically with table like this.

[ ]
[ ]
[ ]

What I want to do is make 5 sections centered in the middle row each with a white border around them sort of like this.

[ [ ] [ ] [ ] [ ] [ ] ]

Each one will have a picture and two lines of text. My problem is that I don’t think I can do this with table elements. I wanted to do it with div tags, but they end up on seperate lines, and span tags won’t let me create a border. If anyone has any ideas on what I should do please let me know.

Thanks in advance.

This closed post was written 6 months, 2 weeks ago | V/U/S: 226, 10, 5 | Edit Post | Report Post


Reciprocity (4) Many thank yous! The poster has helped others since their own post was made.

Since writing this post Arkia Valkair has helped in 4 other users' posts within the last 4 days. Arkia Valkair is a verified member, has been around for 7 months, 1 week and has 2 posts and 755 replies to their name.

Post Tags (2)

Replies (10)

Where were you?

Click and drag to move the map around. FAQ: How we place people on this map »
You can also watch events on Help.com as they happen
Mouse over the map for 2 seconds to see an expanded, interactive view

❤ℓινιηgJst4u offline Verified User (1 year, 1 month) Long Term User Shouts: 145 #
An Unknown Location | 6 months, 2 weeks ago (1 minute after post)

i’ll help u out..
but, jst give me a moment..

Quote this reply Report this reply to moderators
Help me with: waiting love…
❤ℓινιηgJst4u offline Verified User (1 year, 1 month) Long Term User Shouts: 145 #
An Unknown Location | 6 months, 2 weeks ago (7 minutes after post)

u ther mac?

Quote this reply Report this reply to moderators
Help me with: waiting love…
❤ℓινιηgJst4u offline Verified User (1 year, 1 month) Long Term User Shouts: 145 #
An Unknown Location | 6 months, 2 weeks ago (8 minutes after post)

i think we can do it table itslf….but, i dont knw in div. sounds okey?

Quote this reply Report this reply to moderators
Help me with: waiting love…
potree offline Unverified User #
An Unknown Location | 6 months, 2 weeks ago (8 minutes after post)

Yes, you can do this with tables, but if you can do it with CSS, then go with css.

For the table, do something like this for the middle section:
TABLE>
table width=?? border=1(or whatever you want)>
tr>
td> tr> td>Lines of Text Here /td> /tr> tr> td> img src=”" />Image /> /tr> /td>
td>Do same as above /td>
td>… /td>
td>… /td>
td>… /td>
/tr>
/table>
/TABLE> OUTSIDE BRACKET

As you can see, doing it all in tables is really crappy, but if this is all you know at this point, then this should work fine. I didn’t test the code, but I am sure it should give you something like what you asked for.

Quote this reply Report this reply to moderators
This account has been deactivated.
potree offline Unverified User #
An Unknown Location | 6 months, 2 weeks ago (10 minutes after post)

ok, all my ” ” characters were stripped away, so just make sure to put them in at the beginning of all tr, td, table, etc.

Quote this reply Report this reply to moderators
This account has been deactivated.
Arkia Valkair offline Verified User (7 months, 1 week) Long Term User Shouts: 8 #
An Unknown Location | 6 months, 2 weeks ago (4 hours, 8 minutes after post)

I do already know how to do it with tables, but it won’t be centered or with a fixed width (which I should have stated in the original post) That way they would be uniform and only create white space at the sides of the page instead of inside the sections.

Tables are, as you said, really crappy which is why I don’t want to use them. And it certainly is not all that I know at this point. I was looking for a css solution but if there isn’t one I’m willing to go with a different set up I have in mind.

Quote this reply Report this reply to moderators
zinx offline Verified User (6 months, 3 weeks) Long Term User Shouts: 0 #
An Undisclosed Location | 6 months, 2 weeks ago (13 hours, 47 minutes after post)

For making it center, you can add
align=”center”

As for fixed width, you can specify absolute width which is not a really good thing to do mostly. Reason being everyone has a different screen size so if you have an absolute size, even with a bigger screen or a smaller one, it will still occupy the size you specified, leaving it look a bit odd sometimes.

However,to specify an absolute size, just add the size as pixels (px) or point (pt) etc. like this.

width=”200px”

Or, “Width:200px”

Quote this reply Report this reply to moderators
spiratec9 offline Verified User (1 year, 9 months) Long Term User Shouts: 2 #
Burnaby, BC, CA | 4 months, 2 weeks ago (2 months after post)

Find a website that looks similar to what you want then look at the pages
code.

Quote this reply Report this reply to moderators
mricks offline Verified User (4 months) Long Term User Shouts: 0 #
An Unknown Location | 4 months ago (2 months, 2 weeks after post)

you should space out the measuring and have people scroll side to side instead of up and down

Quote this reply Report this reply to moderators

Arkia Valkair closed this post.

This post has been closed, no more replies. Thanks!

Invite Others to Help

Seeing as this post is closed, no invites are allowed.