Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> .container { width: 500px; height: 100px; border: 1px solid #000; } .left { width: auto; height: 100px; background: #d1d1d1; overflow: hidden; } .right { height: 100px; width: 100px; background: #d69292; float: right; } </style> </head> <body> <div class="container"> <div class="right"></div> <div class="left"></div> </div> </body> </html>