June 20, 201016 yr Hi, I want to set a background like below for a module : but due to various heights; I created an image with maximum height (600px): So how could I define this background to show both its top and bottom on shorter heights? my modules are with xhtml style ( DIV ) I remember that we do this by table-layout: auto; and some other css properties on table styled modules in mambo. But the problem is that here, modules are in DIV format and "table-layout: auto;" doesn't work on it Report this post Regards...
June 29, 201016 yr Hmm..I don't have the most advanced knowledge of Joomla but I will try to help. First of all, have you downloaded any template overrides to create a table-less code for your Joomla site? Read Here In regards to the rounded box, I assume you purposely do not have any rounded corners on the left? If so, then I would usually just use one image for the entire process, and copy part of the bottom of the box into the same image then use background-position property to create the effect. The Image HTML <ul id="tabs"> <li><a href="#">fooooooo</a></li> <li><a href="#">fooooooo</a></li> </ul> CSS #tabs {margin: 0 200px; width: 300px; position: absolute; top: 50px; left: 60%; } /*NOT REALLY NEEDED AS THIS IS JUST WHERE I HAVE POSITIONED THE TABS ON THE PAGE, SO WILL BE DIFFERENT FOR YOU*/ #tabs li { background: green url(images/tab.gif) no-repeat; list-style: none; float: left; margin: 0 0 0 10px; } #tabs a { background: url(images/tab.gif) no-repeat 100% -30px; text-decoration: none; padding: 8px 14px 7px; display: block; } Obviously this is just an example and shows how I would create a tab that can extend horizontally, you situation would be different but this should give you a good idea. I couldn't seem to find a method like this when I looked on Google, even though it must be out there somewhere.
Create an account or sign in to comment