 
	
		
		
		
		
			
- 
		AuthorPosts
- 
		
			
				
January 26, 2014 at 4:50 pm #215028Hi I want to add a dashed border to my category widget and my most popular article widget but I cannot find the right css to do it.. 
 I’ve tried that#sidebar sidebar_right three alpha .widget clearfix widget_categories { 
 margin-bottom: 0px;
 margin-top: -10px;
 background: transparent;
 border: 2px dashed #EEDFC2;
 }
 and other combination but nothing works..What is the right code, can you help with that?Kind regards Chrys January 27, 2014 at 7:18 am #215173Hi chryseis! Please give us a link to the page. WP assign a unique id for sidebar widgets so we need to inspect the website. Please post a screenshot of what you’re trying to do. Best regards, 
 IsmaelJanuary 27, 2014 at 7:44 pm #215464This reply has been marked as private.January 29, 2014 at 3:01 am #216204Hi! Try using the !important rule, i’d like to check your blog live but is not loading on my end :/ border: 3px dashed #C9B737 !important;Regards, 
 JosueJanuary 29, 2014 at 10:33 am #216289Hi, Are you sure it’s not loading? What can cause that because my site works fine on my side… 
 http://www.calliframe.com/blog/Anyway, even with important ! it’s not changing anything… Kind regards, Chrys January 29, 2014 at 3:52 pm #216400Hi! Please try following code instead #top-posts-2 { border: 3px dashed #C9B737; }Best regards, 
 YigitFebruary 2, 2014 at 4:18 pm #218427This reply has been marked as private.February 2, 2014 at 6:45 pm #218451Hi! The # stands for ID, and the dot for class (element attributes), see this example: 
  In this case the ID would be: qt_bbp_reply_content_toolbar and the class: quicktags-toolbar Also an ID selector will have more priority than class one. You normally use a class selector when you want to apply a style to multiple elements (class can be applied to many elements, id is unique). Best regards, 
 JosueFebruary 6, 2014 at 8:29 am #220368Hi Josue, Thank you so much for this explanation, I really appreciate it, it’s been helpful. I’m all good now ! Thanks Chrys 
- 
		AuthorPosts
- The topic ‘css for widget in sidebar’ is closed to new replies.
