Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within HTML Pages with CSS and JavaScript
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
HTML Pages with CSS and JavaScript
Overflow error
pramod talekar
Ranch Hand
Posts: 367
I like...
posted 8 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello,
Can you please suggest why removing
overflow
statement in
ul
in the below code causes error in the output ?
<!DOCTYPE html> <html> <head> <style> ul { list-style-type: none; width:600px; margin: 0; padding: 0; background-color: #333; overflow:hidden; } li { float: left; } li a { display: inline-block; color: white; text-align: center; padding: 14px 16px; text-decoration: none; } li a:hover { background-color: #239; } li a.active{ background-color:green; } div{ width:600px; border : 1px solid black; } </style> </head> <body> <ul> <li><a class="active" rel="nofollow">Home</a></li> <li><a >News</a></li> <li><a >Contact</a></li> <li><a >About</a></li> </ul> <br> <div>div to check size</div> </body> </html>
Thanks,
Pramod
Bear Bibeault
Sheriff
Posts: 67746
173
I like...
posted 8 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
What kind of error?
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
I wish to win the lottery. I wish for a lovely piece of pie. And I wish for a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Absolute Position in IE
Font color not working
CSS Footer wont stick!
HTML and CSS: Unable to align the DIV properly
How to use jsp in javascript
More...