- Posts: 59
- Thank you received: 1
Shipment/Delivery options not aligned
11 years 9 months ago - 11 years 9 months ago #189452
by madjedo
Shipment/Delivery options not aligned was created by madjedo
-- url of the page with the problem -- : localhost
-- HikaShop version -- : business
While at the checkout page, I notice that the shipment and delivery options are not aligned properly on my page.
Please view my uploaded screen for reference. I would like the tables to align properly.
Best Regards,
madjedo
-- HikaShop version -- : business
While at the checkout page, I notice that the shipment and delivery options are not aligned properly on my page.
Please view my uploaded screen for reference. I would like the tables to align properly.
Best Regards,
madjedo
Last edit: 11 years 9 months ago by madjedo.
Please Log in or Create an account to join the conversation.
11 years 9 months ago #189458
by madjedo
Replied by madjedo on topic Shipment/Delivery options not aligned
I think I solved this by changing a bit in .css
Basically just added fixed to table layout and set the width. Had to edit some margins aswell. Was this right? Or am I missing something?
Code:
#hikashop_shipping_methods table {border-collapse:collapse; width:500; table-layout:fixed;} /*ändrat width och fixed */
#hikashop_shipping_methods td {padding:10px 10px;}
#hikashop_payment_methods table {border-collapse:collapse; width:500 table-layout:fixed;} /*ändrat width och fixed */
.hikashop_checkout_payment_description{margin-left:15px}
Basically just added fixed to table layout and set the width. Had to edit some margins aswell. Was this right? Or am I missing something?
Please Log in or Create an account to join the conversation.
11 years 9 months ago #189485
by lousyfool
Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
Replied by lousyfool on topic Shipment/Delivery options not aligned
Shipping and payment methods in checkout are two separate, independent HTML tables. By default, the table cell widths display depending on their content, eventually both tables appearing differently and "not aligned".
So, yes, applying CSS is a way of "controlling" it. However, adding code per individual table (cell) as you did to make it appearing like the other, might work but can be fiddly - and unreliable if content changes, or even from browser to browser.
IMHO, it'd be simpler and reliable if you applied the same CSS for both tables/cells. Once done right, it's guaranteed that both tables will always display the same way (= "aligned").
Just my 2 cents... but of course, do whatever works best for you.
So, yes, applying CSS is a way of "controlling" it. However, adding code per individual table (cell) as you did to make it appearing like the other, might work but can be fiddly - and unreliable if content changes, or even from browser to browser.
IMHO, it'd be simpler and reliable if you applied the same CSS for both tables/cells. Once done right, it's guaranteed that both tables will always display the same way (= "aligned").
Just my 2 cents... but of course, do whatever works best for you.
Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
Please Log in or Create an account to join the conversation.
Time to create page: 0.045 seconds