dsh2000 2 Report post Posted August 4, 2011 Hello everybody. I am trying to make the 3 boxes in the morefoot area of different widths. However, my code does not appear to be working. Here is what I have done. Any help to point me in the right direction would be greatly appreciated! :-) .dcol_3 { margin-left: 20px; min-width: 192px; } div.dcol_3 dcol wcontain fix { width: 192px; } div.dcol_3 dcol wcontain { width: 266px; } div.dcol_3 lastcol dcol wcontain { width: 430px; } Share this post Link to post Share on other sites
Kate 3 Report post Posted August 4, 2011 First, there aren't classes assigned to all of your words in the declaration. Also, I don't think that specificity is necessary (nor correct). Since the divs don't have IDs assigned, you'll probably have to use either child and/or sibling selectors with CSS, or jQuery to pick out and style the elements. Share this post Link to post Share on other sites
dsh2000 2 Report post Posted August 4, 2011 Thank you Kate for your reply, However I am a bit more confused than before. I have placed this code into my child theme. Would I need to do something like: #exampleID1.dcol_3 { margin-left: 20px; min-width: 192px; } Share this post Link to post Share on other sites
kastelic 6 Report post Posted August 4, 2011 The columns don't have ids attached to them but the classes are sometimes different which can help you target each one, for example the last one has the class "lastcol". So to target that one use; .dcol_3.lastcol { width:50px } Share this post Link to post Share on other sites
dsh2000 2 Report post Posted August 9, 2011 Thank you Kastelic for pointing me in the right direction!! :-) Share this post Link to post Share on other sites