DUmbass question
- Started
- Last post
- 18 Responses
- piperboytoy
ok, I have searched on google, but nothing.
I'm trying to align a table to the right of the browser, but nothing I've tried worked. I've done this before
TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0" WIDTH="100%" HEIGHT="100%" ALIGN="RIGHT">
</TRWhat am I doing wrong? Help me please. Thanks
- Mimio0
Have you tried setting the pixel width of the table instead of a percentage?
- piperboytoy0
no, I wanted it to scale with the browser. I've seen that before, but not sure where. If you can send me a link. I can probably check it myself.
thanks for your response.
- nuggler0
put your align=right BEFORE your table tags
- zaven0
in the body tag
- sparker0
use a div tag and css.
place the table inside a block level element like div and use css to align it to the right.
tables aren't for layout...they don't adhere to positioning the way you want them too, not without outdated hacks and poor markup.
don't "align" anything in the body tag...not all browsers support things like that.
besides, all those extra deprecated tags and attributes only add to the size of your code...slowing the site down.
- BonSeff0
if the table width is 100% why do you need to align it? shouldnt it touch both the left and right edges of the browser?
i guess i dont understand the question
- piperboytoy0
Ok thanks guys. I figured it out. Just added the tag. Boy I need to update my coding skills.
any books you can recommend ?
thanks
- sparker0
"designing with web standards"
- jeffery zeldmanfor something to start with.
:)
- piperboytoy0
thanks sparker. I'll look for that one.
- AD0
How did you get your username and date above your post?
- piperboytoy0
i HAVE NO IDEA, i JUST TYPED AND IT WAS LIKE THAT.
- 4cY0
did anyone notice the weird layout of piperboys post??
did you use any special symbols?
- 4cY0
it's the code?
</TR
- 4cY0
ah i see...
TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0" WIDTH="100%" HEIGHT="100%" ALIGN="RIGHT">
</TRhahaha, yes it is..
- piperboytoy0
hahaha, now my secret is out.
TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0" WIDTH="100%" HEIGHT="100%" ALIGN="RIGHT">
- 4cY0
< but then from the source it is..
</tr
- piperboytoy0
how u do that?
- mirola0
arse