Note: The image of the beef is a background image since it’s decorative in nature. The brown block behind the heading text is a graphic. Also, the final site will be responsive. Here’s a preview of my bootstrap template that I plan to work with.
The brown a div with overflow hidden and some padding. Float the image left. Give the heading a negative margin to drag it left. The text is in a p. Done.
1.) How to close the gap between the 2 <h3> tags
2.) How to get the <h3> background image to stop at the end of the H3 text and not all the way to the right. How to apply background color until we need to apply image to the right.
Yes, I tried removing display:inline before posting this thread and it ends up setting the <h3> tag as a block, so the background color is then extended all the way to the edge of the container. I need to figure out how to extend the background color only about 5px to the right of the last character of the <h3> tag like the graphic I had previously uploaded. The easy way out would be to style each line as:
Notice how the photo for the ABOUT THE STEAKHOUSE section is chopped off on the bottom and top. How do I get it so the entire photo shows? I tried looking up the CSS height property but I am still confused. Can you help point me in the right direction?
Under what conditions is the image being chopped? In what browser, etc?
It looks fine to me until the width of the viewport is reduced to ~750px and the layout changes from columns to rows.
If that is the problem you are referring to, then the image image is behaving like any ordinary background image should. It is being clipped as the height of its container becomes shorter than the height of the image. You can give the container a minimum height that matches the height of the image if you wish.
.beef {
[color=blue]min-height:208px;[/color] /* add me */
}