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
https://forums.phpfreaks.com/topic/237647-positioning/#findComment-1221184
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
https://forums.phpfreaks.com/topic/237647-positioning/#findComment-1221191
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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