O'Reilly logo

Creating Web Pages Simplified by Mike Wooldridge

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 11. Controlling Layout with Style Sheets

Want to create complex layouts on your Web pages, beyond what is possible using HTML alone? This chapter shows you how to precisely position text, images, and other elements on your pages using style sheets. Style sheets let you place content at set coordinates within your layout. You can also control the spacing around your page elements, wrap text around images and tables, and even overlap content.

Controlling Layout with Style Sheets

Control Layout 178

Set Width and Height for an Element 180

Use Relative Positioning 182

Use Absolute Positioning 184

Use Fixed Positioning 186

Set Margins 188

Add Padding 189

Wrap Text around Elements 190

Change ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required