13.07.2015 Views

Beginning CSS: Cascading Style Sheets for Web Design, 2nd ...

Beginning CSS: Cascading Style Sheets for Web Design, 2nd ...

Beginning CSS: Cascading Style Sheets for Web Design, 2nd ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Part II: PropertiesFigure 11-29aFigure 11-29bIn Figure 11-29c, you see that the element with id name dialogue is centered both verticallyand horizontally in the browser window. Having seen this technique, you might wonder if this can beachieved with variable width or variable height content, that is to say, have a with id name dialoguethat doesn’t have a fixed width or height. And the answer is no, the element this technique isapplied to must have a fixed width and height <strong>for</strong> this technique to succeed. For the overwhelmingmajority of cases, however, this isn’t a problem. You can always overflow content, and provide scrollbars if necessary with the overflow property.442

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!