Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
added 21 characters in body
Source Link
Andreas
  • 737
  • 1
  • 7
  • 24

Try absolute positioning:

.Hashta{ width:874px; height:650px; background-color:black; margin: auto auto 50px auto; border-radius: 20px; border: 3px solid darkgray; moz-box-shadow: 2px 2px 10px black; webkit-box-shadow: 2px 2px 10px black; box-shadow: 2px 2px 10px black; position:relative; } .Menu { position:absolute; top:227px; right:0; padding-right: 50px; float:right; } 

Try absolute positioning:

.Hashta{ width:874px; height:650px; background-color:black; margin: auto auto 50px auto; border-radius: 20px; border: 3px solid darkgray; moz-box-shadow: 2px 2px 10px black; webkit-box-shadow: 2px 2px 10px black; box-shadow: 2px 2px 10px black; position:relative; } .Menu { position:absolute; top:227px; padding-right: 50px; float:right; } 

Try absolute positioning:

.Hashta{ width:874px; height:650px; background-color:black; margin: auto auto 50px auto; border-radius: 20px; border: 3px solid darkgray; moz-box-shadow: 2px 2px 10px black; webkit-box-shadow: 2px 2px 10px black; box-shadow: 2px 2px 10px black; position:relative; } .Menu { position:absolute; top:227px; right:0; padding-right: 50px; float:right; } 
added 357 characters in body
Source Link
Andreas
  • 737
  • 1
  • 7
  • 24

Please use padding instead of margin because the height is margin + height. Or fix the height of the menu itself and subtract that from the height of the div element.Try absolute positioning:

.Hashta{ width:874px; height:650px; background-color:black; margin: auto auto 50px auto; border-radius: 20px; border: 3px solid darkgray; moz-box-shadow: 2px 2px 10px black; webkit-box-shadow: 2px 2px 10px black; box-shadow: 2px 2px 10px black; position:relative; } .Menu { position:absolute; top:227px; padding-right: 50px; float:right; } 

Please use padding instead of margin because the height is margin + height. Or fix the height of the menu itself and subtract that from the height of the div element.

Try absolute positioning:

.Hashta{ width:874px; height:650px; background-color:black; margin: auto auto 50px auto; border-radius: 20px; border: 3px solid darkgray; moz-box-shadow: 2px 2px 10px black; webkit-box-shadow: 2px 2px 10px black; box-shadow: 2px 2px 10px black; position:relative; } .Menu { position:absolute; top:227px; padding-right: 50px; float:right; } 
Source Link
Andreas
  • 737
  • 1
  • 7
  • 24

Please use padding instead of margin because the height is margin + height. Or fix the height of the menu itself and subtract that from the height of the div element.