Jump to content

positioning


sofia403

Recommended Posts

ok nevermind i got it figured. thanks

apart from the fact that you figured it out, it's always nice to share the solution so others can be helped also, if they were searching for a solution.

I assume you used,

 

td{text-align:center;} 

 

and if not, i would consider it.

Link to comment
Share on other sites

i was afraid of something like that. apart from the missing quotes around the attribute values, which could cause weird results crossbrowser;

 

the problem with that code is that you make your php more complicated than needed. A good thing to do is to separate concerns (style and logic apart). So separate the css in a different file called a stylesheet. certainly since this is a table cel. can you imagine a table with say 300 cells.

 

you will need to add that align="center" (that's 14 characters times 300,  makes 4200 extra characters) instead of just using

 

td{text-align:center;}

  in a stylesheet

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.