Web Development and Design Foundations with XHTML, 5th Edition

(Steven Felgate) #1
7.2 CSS Pseudo-Classes and Links^279

You will use the border and padding CSS properties to configure the buttons. Let’s
review these properties. The borderproperty configures the width (border-width),
style (border-style), and color (border-color) of the border around an element. The
paddingproperty configures the amount of padding—the blank space between the ele-
ment and its border.


Launch Notepad and type the following XHTML:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">




CSS Pseudo-class Example 2


Free download pdf