http://www.pixelpusher.biz/

Free articles for submit about web design. All about internet business, Web Design, SEO, Spam, Traffic Generation, Site Promotion, Domains, Auctions - How to earn money in the Internet

RSS

Navigation

Top articles

.

pixelpusher.biz » CSS & Design » Protect floated columns from falling apart

Protect floated columns from falling apart

Date3-11-2010, 19:06 CategoryCategory: CSS & Design, Web Design ViewsViews: 197
This is a presentation of a small trick that might become a life saver for your future projects in case you create cms templates and you have no control of what users might upload in your fixed width container.

Let's say that you created a wordpress theme with 540px wide content area, but user decide to upload a 600px wide image. Some browsers will handle it but some won't. I guess you know which ones I am referring too.
Anyway, try to look at this example in IE6.

Example 1

What can we do about it? Most effective thing is to advise your users not to upload any kind of content wider than your container. Other thing is to add this nice little line of code to the definition of your container and solve the issue.

    overflow:hidden;

Take a look at it now.

Example 2

This will prevent your container from expanding and hide the content wider than container's width. Visually, it will result like the right part of the image has been cut off. But, you'll agree it's a much better solution than having your side column pushed to the bottom.

Read about Protect floated columns from falling apart, Article about Protect floated columns from falling apart, Free Submit Article about internet business, Web Design, SEO, Free Submit Protect floated columns from falling apart

Tags

Friends

Best article directory - cyclingadvocacy.com, only fresh, unique, original articles for submit.

Read also

 
Êíîïêà 88*31 èëè ñ÷åò÷èê 88*31