Hello everyone.
I'm having a problem with a web page. What I have is one DIV (a
header) overlapping the border around another DIV (a menu block). I
want this, because I want to put this header overtop the border of the
menu. The problem is that the border is still showing through the
text, giving it a strikethrough appearance. What I need is for the
menu header to block that part of the border. An example is here:
http://www.altmarvel.net/Liam/whatiwant.jpg. The first menu is what
I'm getting, and the second is what I need.
I first tried a background image which was just a black square and set
the background-repeat attribute. That didn't work (and, since the
colours of the site will probably change, I'd have to create a new
background image every time I try a new colour set).
I've done a search on the Internet and in this group, but haven't come
up with anything quite like what I need. (Maybe I'm using the wrong
search string?) Does anybody have any solutions?
Here is my CSS code. If you know a more efficient way of doing this,
I'd love to hear it.
menu-header {
font-size: .8em;
margin-bottom: -5px;
border-left: 1px solid;
border-right: 1px solid;
width: 60%;
}
In case it matters, here is my HTML code:
<div class="menu-header">Main Menu</div>
<p class = "box-menu">
<a class = "menuitem" href = "index.php">Home</a><br>
<a class = "menuitem" href = "Products.php">Products</a><br>
<a class = "menuitem" href = "Locations.php">Locations</a><br>
<a class = "menuitem" href = "Accounts.php">Accounts</a><br>
<a class = "menuitem" href = "Contact_Us.php">Contact Us</a>
</p>
Thanks, everyone!