Jump to content

Table troubles


Glom

Recommended Posts

Now that the align tag has been deprecated for tables, I've been searching for the way to accomplish the same effect. For centering tables, I was given code that works like this.

table   {   width:75%;   margin: 0 auto;   }

This is in the internal stylesheet for my front page. I use similar inline style tags for other tables around the site. When I look at the offline version of the page I have on my computer, it works fine. The tables are centred. However, if you look at the link, you'll see it doesn't work for the online version.Why the difference? And how do I deal with that?PS what happened to the valign attribute? I can't find any reference to it. I assume it is gone.

Link to comment
Share on other sites

You will find it is something to do with using geocitys for your host I rekon.They often cause such problems.You do know you will never get your site valid while you use geocitys for a host anyways as the coding they use for there advertising is not valid.I dont know if you can afford it but I would highly recommend getting a small paid hosting account there are some really cheap great deals out there.Works fine in Firefox by the way.

Link to comment
Share on other sites

You will find it is something to do with using geocitys for your host I rekon.They often cause such problems.
I suspected as much.
You do know you will never get your site valid while you use geocitys for a host anyways as the coding they use for there advertising is not valid.I dont know if you can afford it but I would highly recommend getting a small paid hosting account there are some really cheap great deals out there.
I plan to get away from GeoCities as soon as I figure out how to do it.
Works fine in Firefox by the way.

Ah yes, so it is.
Link to comment
Share on other sites

I use www.evohosting.co.uk I have got one of there micro plans for £25 a year including a free domain name but there are loads out there.When you sign-up they give you your FTP details and C-Panel details all hosts are dead easy to use really.

Link to comment
Share on other sites

On the subject of aligning tables, I currently use the old align attribute to makes tables sit amongst the text either on the left side or the right side as I desire. Here's how I do it from this page.

<table border=1 align="right" width=13%>  <tr>    <td><img src="../Images/nucleus.jpg" alt="The nucleus" /><br />    <h4>Figure 2- Model of a nucleus, comprised of protons and neutrons, collectively called nucleons.</h4>    </td>  <tr></table>

I've played with the margin thing but haven't found the solution yet. How would I do this with styles?

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
×
×
  • Create New...