Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Joommla module costum background

Featured Replies

Hi,

I want to set a background like below for a module :

 

1_64.jpg

 

but due to various heights; I created an image with maximum height (600px):

2_39.jpg

 

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 :unsure:

 

 

Report this post

Regards...

  • 2 weeks later...

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

 

tabx.gif

 

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.