| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| New Member Join Date: Feb 2006
Posts: 2
![]() | [resolved] CSS: width not being respected Hello, This may be another stupid question. Same code: a.menuitem { background-color:#CCCCCC; border-top:#999999 1px solid; border-bottom:#999999 1px solid; border-left:#999999 1px solid; border-right:#999999 1px solid; padding-left:2px; font-size:10px; width:190px; text-decoration:none; ????: NamePros.com http://www.namepros.com/programming/170369-css-width-not-being-respected.html color:#000000; } this is nested in: #menu { margin:auto; width:200px; /* background-color:#3399CC; */ } which is also nested in: #leftbar { width:200px; background-color:#CCCCCC; float:left; background-image:url(../images/leftbg.PNG); background-position:bottom; background-repeat:no-repeat; } which is finally nested in: #maincontainer { margin:auto; background-color:#CCCCCC; width:900px; } Ok, I set the original instance (a.menuitem) to be width:190px, and it is margin:auto within the (div id) #menu. It's not doing what it's supposed to be doing (and here is the picture I took earlier) (multipurpose pic )anyway, can anyone help? RESOLVED: need to put display:block; for the anchor to be displayed as a "block"
Last edited by shuai; 02-23-2006 at 06:08 AM.
|
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CSS Help plzz | prince20 | Programming | 4 | 02-15-2006 05:11 PM |
| Trouble w/ CSS rollovers in IE | Splinter Freelance | Web Design Discussion | 3 | 11-27-2005 12:57 PM |
| Various CSS problems | Daniel Exe | Programming | 1 | 11-22-2005 10:46 AM |
| CSS Questions - Width of an inline element | EricH | Programming | 0 | 02-18-2005 08:02 AM |
| Mozilla/Firefox (css) width: 100%; issue. | FieroGT | Web Design Discussion | 3 | 08-07-2004 12:06 AM |