How to make image and text responsive next to each other on a background?

csf

I am completely new to bootstrap, have been working with it for like a week. I am currently working on a Christmas gift to my girlfriend and I am really stuck.

I want to place a picture and a short text (next to each other) on a background. The image look really much like this: enter image description here It's totally left positioned and there is text next to her. (There is also a bit of a place between the image and the text and also between the text and the end of the screen in the right. The picture starts in the left where the screen starts.)

I also want everything to be responsive ofc.

I tried everything but it never really worked and I wasted like 2 days on this issue. I really can't make it alone! PLEASE HELP!!!

.section_1 {
  position: relative;
  color: #fff;
  background-color: #bdbdbd;
}
.picture {
  content: url(http://i.stack.imgur.com/Zlrxu.png);
  width: 50%;
  position: relative;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  -o-background-size: cover;
}
.text {
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 20px;
}
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
<section class="section_1">
  <div class="container-fluid">
    <div class="row-fluid">
      <div class="picture">
        <div class="span2">
        </div>
        <div class="span10">
          <div class="text">
           <p>Lorem ipsum</p>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>

rraman

In bootstrap 3.x ".row-fluid" class has changed to ".row" and ".span*" classes have been changed to ".col-*". I have made few changes to your code and made it to behave as given in your image link, please click here for plunker demo.

HTML file:

<section class="section_1">
<div class="container-fluid picture">
    <div class="row ">
        <div class="col-sm-5">
          <img src="http://i.stack.imgur.com/Zlrxu.png" class="img-responsive"/>
        </div>
        <div class="col-sm-7 text"><p>Lorem ipsum</p></div>
    </div>
    </div>

CSS file:

.section_1 {
color: #fff;
background-color: #bdbdbd;}

.text {
font-size: 16px;
font-weight: 300;
color: rgba(255, 255, 255, .7);
vertical-align: middle;}

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

text and image next to each other inside background div

From Dev

How to make a background-image on a image responsive

From Dev

Make background image responsive

From Dev

how to make div background image responsive

From Dev

How to make CSS background-image responsive?

From Dev

How to make div background image responsive?

From Dev

How do I make a background image responsive?

From Dev

How to make CSS background-image responsive?

From Dev

How to get two pieces of text to sit next to each other and be responsive to screen width changes?

From Dev

Display Image and Text next to each other HTML

From Dev

Image and Text next to each other and in the middle of the div

From Dev

Putting Image and Text Next to Each Other

From Dev

How to make a div next to each other in CSS

From Dev

How to make buttons next to each other?

From Dev

make css background image responsive

From Dev

Wordpress : Make a background image responsive

From Dev

make css background image responsive

From Dev

Make background image responsive fluid

From Dev

html text on responsive background image

From Dev

Responsive Menu with Text on Background Image

From Dev

How to center text next to a responsive image in Bootstrap3

From Dev

How to center text next to a responsive image in Bootstrap3

From Dev

How to make only background image transparent in responsive square grid?

From Dev

How can I make the background image to be responsive without losing the proportions

From Dev

how to make background-image included via a "class" responsive

From Dev

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

From Dev

Responsive CSS background image - how to make content follow

From Dev

Align 2 sections next to each other in responsive

From Dev

How to make responsive image?

Related Related

  1. 1

    text and image next to each other inside background div

  2. 2

    How to make a background-image on a image responsive

  3. 3

    Make background image responsive

  4. 4

    how to make div background image responsive

  5. 5

    How to make CSS background-image responsive?

  6. 6

    How to make div background image responsive?

  7. 7

    How do I make a background image responsive?

  8. 8

    How to make CSS background-image responsive?

  9. 9

    How to get two pieces of text to sit next to each other and be responsive to screen width changes?

  10. 10

    Display Image and Text next to each other HTML

  11. 11

    Image and Text next to each other and in the middle of the div

  12. 12

    Putting Image and Text Next to Each Other

  13. 13

    How to make a div next to each other in CSS

  14. 14

    How to make buttons next to each other?

  15. 15

    make css background image responsive

  16. 16

    Wordpress : Make a background image responsive

  17. 17

    make css background image responsive

  18. 18

    Make background image responsive fluid

  19. 19

    html text on responsive background image

  20. 20

    Responsive Menu with Text on Background Image

  21. 21

    How to center text next to a responsive image in Bootstrap3

  22. 22

    How to center text next to a responsive image in Bootstrap3

  23. 23

    How to make only background image transparent in responsive square grid?

  24. 24

    How can I make the background image to be responsive without losing the proportions

  25. 25

    how to make background-image included via a "class" responsive

  26. 26

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

  27. 27

    Responsive CSS background image - how to make content follow

  28. 28

    Align 2 sections next to each other in responsive

  29. 29

    How to make responsive image?

HotTag

Archive