hm_468x60_09_395
announcement

Joomla Web Hosting

Find the best and most affordable Joomla web hosting provider.

Community Showcase on joomla.org

The Joomla Project is pleased to announce latest undertaking to promote Joomla site

Advertise on JoomlPanel.com

For only $30.00 a month you can advertise on one of the web's largest Joomla websites.

More Changes Coming Soon!

Check back for future changes!

bh_300x250_08_395

Developing Semi-Liquid Layouts

Semi-liquid layouts may possibly start to become more popular in the near future. As screen resolutions get both smaller (mobile) and bigger (larger monitors), having some knowledge on adapting to semi-liquid layouts will most definitely be a plus in your arsenal. Here are few tricks that I use when it comes to working with semi-liquid layouts. If you a web publisher have some of your own that you would like to share, I would love to learn about it!

1. Drop Shadows on Layout

Drop Shadow on Semi-Liquid Layout

Typically most people use a 1px height image of the layout drop shadow, and repeat vertically to stretch to the bottom. When working with semi-liquid layouts, this technique needs to be modified a tad bit. Here is a work-around to achieve this effect on a semi-liquid layout.

HTML
We achieve this effect by layering the left drop shadow with the right drop shadow. We can nest two div’s and allow them to overlap each other.

 





 

CSS

#content_wrap {
background: #fff url('/body_shadow_L.gif') repeat-y left top; /*--Left drop shadow--*/
margin: 0 auto;
padding: 0;
min-width: 780px; /*--Minimum Width--*/
max-width: 1200px; /*--Maximum Width--*/
}
.content {
background: url('/body_shadow_R.gif') repeat-y right top; /*--Right drop shadow--*/
margin: 0;
padding: 25px 40px; /*--Padding inside of the main content--*/
overflow: hidden;
font-size: 1.2em;
}

What about IE6?
As for myself, I am starting to neglect IE6 users more and more, so to make it easy on myself I usually just use the *html hack for IE6 and have the #content_wrap as a fixed width.

2. Flexible Banners

Flexible Banners on Semi-Liquid Layout

One simple technique that works like a charm is the flexible banner technique. We will first design the banner based on our minimum width. For the remaining space, we will fill it with a repeating background image.

HTML

 

 

CSS

.banner_wrap {
width: 100%;
background: url('/banner_stretch.gif') repeat-x;
display: block;
text-align: center;
}

If you would like to take this a step further, you can get very creative with the CSS Parallax effect.

3. % Based Columns

Drop Shadow on Semi-Liquid Layout

I’ve discussed this tip before on a couple of my previous tutorials, but its something that I am starting to use more often. When working with liquid type layouts, its always tough to mix % with a fixed px based width. What we need to do is separate the two like this:

HTML

 











 

CSS

ul.col3 {
width: 100%;
margin: 10px 0;
padding: 0;
list-style: none;
overflow: hidden;
}
ul.col3 li {
float: left;
width: 33.3%;
padding: 0;
margin: 0;
}
.block {
margin-right: 10px;
padding: 20px;
background: #f0f0f0;
}

Extra Space?
We would end up with an extra 10px on the last column, but we can fix this with some simple jQuery.

jQuery

//Get rid of last margin
$("ul.col3").find("li .block:last").css("margin-right", "0");

*Note - Chris Coyier recently spoke on this topic and came up with a solution with pure css. 

*Note - Achieving equal height on these semi-liquid columns may become an issue as well, here is a nice tutorial by CSS Newbie on the topic. Do check it out!

4. Fixed + Liquid Based Columns

This trick usually throws people off, but its actually not that difficult once you understand the logic of it. Please refer to my previous article “Liquid + Fixed Two Column Lists with CSS” for more details.

Liquid Fixed Layout Example

Conclusion

As you can see, most of these techniques revolve around the flexibility of your design. Although designing for semi-liquid layouts can be a hassle, it may be a huge benefit for your visitors. Semi-liquid layouts are not recommended for every site out there, so do look into the pros and cons and execute them accordingly. If you have any other tricks and tips, please don’t hesitate to share!


Resource: sohtanaka

 

 

joomlahosting




Joomla Tutorials

Joomla panel provides easy to use website joomla tutorial free download joomla templates for joomla verssion 1.0x and 1.5x. Here you will learn how to install Joomla, all the way to installing and customizing your own templates.

Tutorials Showcase enables you to build Web sites and powerful web applications. Best of all, Joomla is an open source solution that is freely available to everyone.

Building Web CMS Project

Submit your joomla web to joomlapanel web showcase gallery directories and find the joomla stable extensions : Joomla plugin, joomla module, joomla component, joomla mambot.

Submit your Article blog into our article directories to anchance high web Traffic.

 

Article and Tips trick

Your sohowcase for Travel guide; Hotel, Villas resort, Flight, car website

tutorial