How do i set the table under the images to be the same width as the image above? Thanks for your help!
http://cran-web.com/letaky/generate/10
EDIT: I was talking about “tab_cena”, not “tab_objednavky”. Sorry for misunderstanding.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
(Nazdar!)
There are only 2 kinds of measurements you can give the table: a fixed width like
1000px, or a percentage like100%. If you give a fixed width, then you have to know the width of the items above (4 cells, 249px each). If you give a percentage, then it depends on the size of the element that contains your table.You can use a percentage to your advantage. Since your table is in a 249px cell and you want it to stretch across 4 cells, try setting the width to
400%. It’s a little bit of a hack because you’re breaking out of the cell container, but it should work.A better way would be to make the
.cellequal 249px x 4 (996px), and just make the#tab_objednavkytable inside it100%width.Edit: to answer your question based on the title of your post: you can’t do that without using JavaScript to set the size of the container div.