stratula Posted March 11, 2013 Posted March 11, 2013 Hello, is it possible on a Osc2.3.1 to make specific buttons smaller? I'm using Product_Info_Page_Box and the buttons in the box are really really big. - see attached file It would be great if i can make them a bit smaller. THX regards stefan
♥kymation Posted March 11, 2013 Posted March 11, 2013 I don't know what the code on your page looks like, but here's a generic guide to making a smaller button. Most buttons will have a containing div that can be used to add some CSS. The stock osC product info page has this: <div class="buttonSet"> <span class="buttonAction"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_draw_button(IMAGE_BUTTON_IN_CART, 'cart', null, 'primary'); ?></span> <?php echo tep_draw_button(IMAGE_BUTTON_REVIEWS . (($reviews['count'] > 0) ? ' (' . $reviews['count'] . ')' : ''), 'comment', tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params())); ?> </div> Adding a style to that first line gives: <div class="buttonSet" style="font-size:0.8em;"> which reduces the size of both buttons to 80% of normal. This is about the practical minimum without drastically affecting the look of the buttons. The inline style is a bit crude; it would be better to add a style to the div and control it in the stylesheet. Modify and refine this to suit your needs. Regards Jim See my profile for a list of my addons and ways to get support.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.