| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Dec 2004
Posts: 253
![]() | CSS Questions - Width of an inline element Is it possible to set the width of an inline element in CSS? For example, the navbar on http://www.w3bids.com uses... Code: a.navbar {
display:inline;
text-decoration:none;
text-align:center;
font-size: 12px;
background-image:
url('http://www.w3bids.com/templates/SmoothBlue/images/site/nav/buttons/button_off.gif');
height:75px
width:100px;
border-style:none;
padding:3px;
margin-left: 0px;
margin-right: 0px;
} ????: NamePros.com http://www.namepros.com/programming/70768-css-questions-width-of-inline-element.html For example, on http://www.txstart.com I used... Code: a.startmenu {
display:block;
text-decoration:none;
text-align:left;
background-color: #FFFBFF;
width:150px;
border-style:outset;
padding:3px;
margin-left: 0px;
margin-right: 0px;
} |
| |