Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Responsive Web Design by Example : Beginner's Guide - Second Edition

You're reading from   Responsive Web Design by Example : Beginner's Guide - Second Edition Build powerful and engaging responsive websites with ease

Arrow left icon
Product type Paperback
Published in Nov 2014
Publisher
ISBN-13 9781783553259
Length 258 pages
Edition 2nd Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Thoriq Firdaus Thoriq Firdaus
Author Profile Icon Thoriq Firdaus
Thoriq Firdaus
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Responsive Web Design FREE CHAPTER 2. Web Development Tools 3. Constructing a Simple Responsive Blog with Responsive.gs 4. Enhancing the Blog Appearance 5. Developing a Portfolio Website with Bootstrap 6. Polishing the Responsive Portfolio Website with LESS 7. A Responsive Website for Business with Foundation 8. Extending Foundation A. Pop Quiz Answers Index

Using CSS3

CSS3 ships with long-awaited properties, border-radius and box-shadow, that simplify old and tedious methods that were used to present rounded corner and drop shadow in HTML. On top of that, it also brings a new type of pseudo-element that enables us to style the placeholder text shown in input fields through the HTML5 placeholder attribute.

Let's take a look at how they work.

Creating rounded corners with CSS3

Back in the 90s, creating a rounded corner was complicated. Adding a pile of HTML markup, slicing out images, and formulating multiple line style of rules is inevitable, as presented in the post by Ben Ogle at http://benogle.com/2009/04/29/css-round-corners.html.

CSS3 makes it much simpler to create rounded corners with the border-radius property, and the following is an example:

div {
  width: 100px; height: 100px;
  border-radius: 30px;
}

The preceding style rule will round the box corner (read the A word on CSS Box Model section in Chapter 1, Responsive Web Design)...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime