Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to have CSS borders outside the box(div)? Or alternative solution

Tags:

css

border

I have this menu hereenter image description here

I want the highlighting(hover) to extend to the edge of the outside box(service menu). Just like how the popout menu is. The menu itself is contained in another div - enter image description here

I don't think it is possible to have negative borders the same way you can have negative padding.

Anyone have a good idea on how to get the highlight of the menu to extend to the edge of the outside box on hover?

This is Drupal w/ Nice Menu by the way.

like image 882
winchendonsprings Avatar asked Jun 27 '11 23:06

winchendonsprings


1 Answers

Looks like a margin issue, trying changing the margin to padding, should work almost exactly the same and go to the edge.

EDIT Or set the width of the out div to be the same as the inner div.

like image 83
JacobTheDev Avatar answered Oct 01 '22 02:10

JacobTheDev