How do I make this code more responsive?

tom

I have a problem with responsiveness. In my example by right side there's 30 px blank place. I don't know how the hell fix it. Does somebody have any idea? http://jsfiddle.net/98p3webw/ details details details details

    .imageeee { 

    position:absolute;
    max-width: 100%;


}
.logo{

    max-width: 100%;
    max-height: 100%;
}

 .max{
    width: 100%;

    position:relative;

 }
 .background{
    position:absolute;
    width: 100%;
    background-image: url("http://www.psdgraphics.com/file/colorful-triangles-background.jpg");
    height: 100%;
    background-size: cover;
 }


<body>


<div >
    <div class="row">
        <center>
            <img class="logo" src="http://i59.tinypic.com/dcbgiw.png">
        </center>
    </div>

        <div class="background col-md-12">

            <div class="max">


                <div class="col-md-2"></div>
                <div class="col-md-8 thumbnail" style="top: 40px;" >
                    <br><br><br><br><br><br><br><br>
                    <br><br><br><br><br><br><br><br>
                    <br><br><br><br><br><br><br><br>

                </div>
                <div class="col-md-2"></div>
            </div>
        </div>

</div>

Alexander O'Mara

The 15 pixel spacing you are seeing are being added by Bootstrap's row class.

.row {
    margin-left: -15px;
    margin-right: -15px;
}

In Bootstrap, .row elements should be wrapped by a .container or container-fluid element.

From the Grid system section of the Boostrap docs:

Rows must be placed within a .container (fixed-width) or .container-fluid (full-width) for proper alignment and padding.

So wrapping your .row element in a .container should solve your immediate problem.

JSFiddle Example:

<div class="container">
    <div class="row">
        <center>
            <img class="logo" src="http://i59.tinypic.com/dcbgiw.png">
        </center>
    </div>
</div>

Further Reading:

You might want to read over the Boostrap docs for the grid system so you can make sure you use it correctly in other places. Also, the <center> tag is deprecated, You should use the CSS test-align property instead.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How do I make this responsive layout with CSS?

From Dev

How do I make a background image responsive?

From Dev

How do I make a website responsive?

From Dev

How do I make this right content responsive?

From Dev

How do i make the sidebar responsive

From Dev

How can I make Ubuntu more responsive on a netbook?

From Dev

I have a script code which works, but how do I make this script code more "elegant"?

From Dev

Make Code more Responsive (Text over Image)

From Dev

How can I make this code more elegant?

From Dev

How do i Make a load more button

From Dev

How do I make this function more precise?

From Dev

How do i Make a load more button

From Dev

How do I make a Pinterest Widget Builder Responsive?

From Java

How do I make the navbar responsive depending on the viewport?

From Java

How do I make my absolute-positioned elements responsive?

From Dev

How do I make rails form responsive to a hyperlink?

From Dev

How do I make semantic ui pages responsive?

From Dev

How do I make my website's background image responsive?

From Dev

How do I make rails form responsive to a hyperlink?

From Dev

how do i make this responsive nav bar work properly?

From Dev

How do I make semantic ui pages responsive?

From Dev

How do I make a responsive div with scroll content in HTML?

From Dev

How do I go make my Python code more efficient and dynamic?

From Dev

floated divs are overlapping and the inner content is wrapping. How can I make more responsive?

From Dev

How can I make this code to find a pair with a sum more efficient?

From Dev

How can I refactor my kotlin code and make it more clear

From Dev

How can I refactor / make this code more pythonic?

From Dev

How would I make this code more compact/efficient?

From Dev

How can i make these 3 lines of code more DRY

Related Related

  1. 1

    How do I make this responsive layout with CSS?

  2. 2

    How do I make a background image responsive?

  3. 3

    How do I make a website responsive?

  4. 4

    How do I make this right content responsive?

  5. 5

    How do i make the sidebar responsive

  6. 6

    How can I make Ubuntu more responsive on a netbook?

  7. 7

    I have a script code which works, but how do I make this script code more "elegant"?

  8. 8

    Make Code more Responsive (Text over Image)

  9. 9

    How can I make this code more elegant?

  10. 10

    How do i Make a load more button

  11. 11

    How do I make this function more precise?

  12. 12

    How do i Make a load more button

  13. 13

    How do I make a Pinterest Widget Builder Responsive?

  14. 14

    How do I make the navbar responsive depending on the viewport?

  15. 15

    How do I make my absolute-positioned elements responsive?

  16. 16

    How do I make rails form responsive to a hyperlink?

  17. 17

    How do I make semantic ui pages responsive?

  18. 18

    How do I make my website's background image responsive?

  19. 19

    How do I make rails form responsive to a hyperlink?

  20. 20

    how do i make this responsive nav bar work properly?

  21. 21

    How do I make semantic ui pages responsive?

  22. 22

    How do I make a responsive div with scroll content in HTML?

  23. 23

    How do I go make my Python code more efficient and dynamic?

  24. 24

    floated divs are overlapping and the inner content is wrapping. How can I make more responsive?

  25. 25

    How can I make this code to find a pair with a sum more efficient?

  26. 26

    How can I refactor my kotlin code and make it more clear

  27. 27

    How can I refactor / make this code more pythonic?

  28. 28

    How would I make this code more compact/efficient?

  29. 29

    How can i make these 3 lines of code more DRY

HotTag

Archive