All posts tagged “Equal”

Test Drive: Mercedes-Benz S550 Coupe and S63 AMG Coupe: Growling through Tuscany in the sculpted touring machines that are equal parts power and luxury

Test Drive: Mercedes-Benz S550 Coupe and S63 AMG Coupe


Designed for crossing continents at high speeds in high style, the Grand Tourer class of automobile is, in many ways, the highest mark of a manufacturer’s ability. Hitting the optimal balance between a finely considered aesthetic, an interior that is suitable for long…

Continue Reading…


Cool Hunting

Web Design: Equal Column Height With CSS

Ttraditionally, a website consists of the main section and a sidebar on the layout. Commonly, the content that is contained in the main section could be longer than the sidebar, which makes the height of these two sections unequal.

In some cases, we want the height to be equal. There are actually some solutions to this situation, and one that is frequently recommended is the Faux Column technique.

Faux Column

Dan Cederholm firstly introduced the term Faux Column in his post over at A List Apart. The idea of this technique is to create an illusion of equal height by adding background color or image to the container instead of to the sidebar itself.

Alright, let’s see the following example to see how this technique works.

<div class="container clearfix">
	<div class="main">Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
	Etiam congue, tortor in mattis mattis, arcu erat pharetra orci, at vestibulum lorem ante a felis. 
	Integer sit amet est ac elit vulputate lobortis. Vestibulum in ipsum nulla. Aenean erat elit, 
	lacinia sit amet adipiscing quis, aliquet at erat. Vivamus massa sem, cursus vel semper non, 
	dictum vitae mi. Donec sed bibendum ante.</div>

	<div class="sidebar">Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
	Etiam congue, tortor in mattis mattis, arcu erat pharetra orci, at vestibulum lorem ante a felis.</div>
</div>

As you can see, we have three div that contain the main section and the sidebar. We also put more (random) content than in the sidebar.

Afterward, we apply a few styles for the main section and the sidebar to be displayed side by side in the browser and we also add different background colors to them.

.container {
	/* none */
}
.main, .sidebar {
	float: left;
	padding: 20px;
}
.main {
	width: 400px;
	background-color: LightSlateGrey;
}
.sidebar {
	width: 200px;
	background-color: Tomato;
}

This will result into something as shown in the following screenshot, as expected the height is not equal.

Let’s apply the Faux Column technique; we simply remove the background color from the sidebar and add it to the container, like so:

.container {
	background-color: Tomato;
}
.main, .sidebar {
	float: left;
	padding: 20px;
}
.main {
	width: 400px;
	background-color: LightSlateGrey;
}
.sidebar {
	width: 200px;
}

The sidebar height now “looks equal” to the main section.

I’m not against this technique. In particular situation it just works fine. But there are some other situation when this illusion will just fail, such as when add a margin to the main section. This screenshot below shows how it turns out.

CSS Table

Alternatively, we can achieve the same result using the CSS Table technique. This technique uses CSS display property to set the HTML elements to act like a table, and this is my favourite approach when this situation rises.

Let’s see the following example to see how it works.

The HTML sturcture is the same as the above example, only we now alter the CSS. We start off by setting the container display to be a table. Then, we set the .main and .sidebar to display as the table-cell and we also need to remove the float declaration from them, otherwise the table-cell will simply fail as well.

.main, .sidebar {
	float: none;
	padding: 20px;
	vertical-align: top;
}
.container {
	display: table;
}
.main {
	width: 400px;
	background-color: LightSlateGrey;
	display: table-cell;
}
.sidebar {
	width: 200px;
	display: table-cell;
	background-color: Tomato;
}

As we mentioned, this will output the same result as shown below. But, unlike the Faux Column, this technique does not deliver an illusion. We just set the div to act like a table. As we may already knew, the columns height is relative to the tallest.

Do you have another way to create similar effect? Do share it in the comment box below. We would love to see your tip.


hongkiat.com

Stunning QR Codes that Prove Usability Does Not Equal Boring

The QR code has seen a massive surge in popularity as marketers use these marks to drive consumers from print ads to an online landing page. In fact, an article by PrintPlace tells a story of an entrepreneur mom who printed flyers for her advertising business and only received 1 sign up. When she then added a QR code to her flyer design, she had 200 people enroll and 50 new clients! Many more companies are having similar success with QR codes, which is why it is so important for designers to be able to offer this service to clients, especially if you can get creative with your design.

The drawback in the past has been that QR codes are plain, even an eyesore to the design of a project. Today, though, plenty of designers are proving that QR codes do not have to be boring. The challenge is balancing the design goals with recognition by consumers. If you do too much with the design, it becomes difficult to tell that you’re even looking at a QR Code. And if consumers don’t recognize the design, they’re simply not going to scan it.

The following designs show just how creative you can get with a QR Code. The majority of the codes included below actually work when scanned. The other, non-functional ones in this collection are just for an added inspirational kick.

Lisa Frank Inspired

Zipper

Corkbin

Rainbow

Brainy

Coffee

Help Japan Now

Farmville

M&MS

Ghost Busters

Skater

Penquin Graffiti

Chinese

BQ

School Of Rock

Pacman

Batman

Preggo

Chopsticks

Dice

Oreos

Superman

Photo Manipulated

Disney

The Wine Sisterhood

TIME

Cutout

SandCastle

Landscaping

Jet Blue

You might also like…

50 Beautifully Designed Posters with Amazing Typography →
30 Beautifully Colorful Typographic Book Cover Designs →
The Beauty of Minimalist Music Posters →
The Complete Web Design Style Series (700 Designs in 14 Categories) →
10 Album Covers for Eye-grabbing Color Scheme Inspiration →
Eight Helpful Rules for Logo Designers →
The Trend of Minimalist Graphic Design →
A Gallery of Slightly Odd and Wonderful Photography from Mr Toledano →
50 Beautiful HDR Images from 50 World Cities →
20 Beautiful Examples of Photoshopped Smoke Art and Technique Tutorials →
30 Creative Photography Examples using the Polar Panorama Effect →
20 Amazing Images That Could Be HDR – But are definitely Not →


Speckyboy Design Magazine