NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page CSS: width not being respected

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
5 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 02-23-2006, 05:56 AM THREAD STARTER               #1 (permalink)
New Member
Join Date: Feb 2006
Posts: 2
shuai is an unknown quantity at this point
 



[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.
shuai is offline  
Closed Thread


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

 
All times are GMT -7. The time now is 02:09 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger