Jump to content

Images in Tables?


Guest Neekokatt
 Share

Recommended Posts

Guest Neekokatt

Hello, a newbie here. I was referred to this site and it's helped me so much. I am working on a blog and needed to create a table to enter lines and columns of text. I learn better by doing and understanding it as I go, not reading about it them trying it myself, so the tutorias and sample were you can change something and see the results worked great for me.Two questions though:1) I have created the table, created headers, changed the width etc, but now I want to add images to that same table. I have searched the site and forum but maybe missed it. I did manage to put an image above the table but that's it. So I need to have a table where there are 4 images and below those images have the description, it will have four to 10 rows of images to. 2) When I used a code already done and alerted it, the heading was bold, which was great, but I don't see any code on what made it bold. As I am still learning this, is there HTML that is hidden? I found this alot with the blog, the coding was there but I couldn't find what I wanted to change, like font size, bolding, type etc. If it's not there can I just add it to the line? Any suggestions on adding images? I don't know if other coding would work better but if anyone could help I would appreciate it.

Link to comment
Share on other sites

I don't know the exact question you're asking.To put an image in a table, just write the image into the <td> tag of the table cell.<table><tr><td><img src="" alt="" /></td><td><img src="" alt="" /></td></tr></table>About the bold text, well, browers interpret <th> tags like that. You can style it with CSS to display it differently.<table><tr><th>This text will be bold</th><th>This text will be bold</th></tr><tr><td>Text will appear normal here</td><td>Text will appear normal here</td></tr></table>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...