locked
Adjust line RRS feed

  • Question

  • User364663285 posted

    Hi,
    Can I have fixed width and length to picture file, to the following code

    <div class="container" style="background:url('../pict/ID-10028343.jpg') no-repeat left top;">



    Thursday, December 1, 2016 3:42 AM

Answers

  • User1724605321 posted

    Hi wmec,

    Try this :

    <div class="container" style="background:url('../pict/ID-10028343.jpg') left top; Height:780px; Width:1220px;background-size: 100% 100%;">
    


    Best Regards,

    Nan Yu

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, December 1, 2016 6:13 AM
  • User177399542 posted
    use: background-size: 100%;
    
    
        <div class="container" style="background: url('Images/download.jpg') no-repeat left top; width: 500px; height: 600px;border:1px solid red;background-size: 100%;">

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, December 1, 2016 6:15 AM

All replies

  • User177399542 posted
    <div class="container" style="background: url('Images/download.jpg') repeat left top; width: 500px; height: 600px;">



    Thursday, December 1, 2016 5:05 AM
  • User364663285 posted

    I put this

    <div class="container" style="background:url('../pict/ID-10028343.jpg') no-repeat left top; Height:780px; Width:1220px;">

    but there is no improvement. 

    Thursday, December 1, 2016 5:34 AM
  • User1724605321 posted

    Hi wmec,

    Try this :

    <div class="container" style="background:url('../pict/ID-10028343.jpg') left top; Height:780px; Width:1220px;background-size: 100% 100%;">
    


    Best Regards,

    Nan Yu

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, December 1, 2016 6:13 AM
  • User177399542 posted
    use: background-size: 100%;
    
    
        <div class="container" style="background: url('Images/download.jpg') no-repeat left top; width: 500px; height: 600px;border:1px solid red;background-size: 100%;">

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, December 1, 2016 6:15 AM