में फिट करने के लिए किसी छवि का आकार बदलें I piecemaker-container
div के आकार में फिट करने के लिए छवि का आकार कैसे बदल सकता हूं?div
<div id="piecemaker-container">
<div id="piecemaker">
<img src="splash.jpg" alt="some_text"/>
</div>
</div>
#piecemaker-container {
display:block;
height:460px;
overflow:hidden;
margin: -10px auto 40px;
width: 960px;
max-width:100%;
max-height:100%;
}
कुछ की तरह -
#piecemaker {
display:block;
height:460px;
overflow:hidden;
margin: -10px auto 40px;
width: 960px;
}
अपने स्टाइल नियमों को अपने एचटीएमएल और अपनी सीएसएस फाइलों में रखना बेहतर है। –