Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Rowan Lewis on
I'm trying to customize the menus in my PHP theme, however for some reason they always come with an extra DIV element wrapped around them:
<div class="menu">
...
</div>
Can anyone tell me what function is inserting that, and how ro remove it?
Comments
Leave it?
Can't be bothered to look up where it's coming from, but I don't see why you'd need to remove it. A div is a neutral element. If you don't want it to be a block level element you can always set it to
display: inline
. Then it won't have any effect at all.--
If you have a problem, please search before posting a question.
I want to remove it because
I want to remove it because its unneeded and messes up my formatting...
You could try... Adding this
You could try... Adding this to your css class named menu --> without quotes "overflow:hidden;"
That would basicly make it not show, I think.
Yes it would... But it would
Yes it would...
But it would still be in the source and thats where I want to remove it. It's no good writing a quality theme when you've got junk code all through it.