I am a complete newbie, so bare with me. I have tried everthing in order to get the borders at the bottom the width or the picture and text above it, but nothing seems to work. let me know if there is something else you need to answer this.
Unfortunately, as a new member you can’t post attachments. You can show us your code instead by posting it here.
You can highlight your code, then use the </> button in the editor window, which will format it for you, or you can place three backticks ``` (top left key on US/UK keyboards) on a line before your code, and three on a line after your code. I find this approach easier, but unfortunately some European and other keyboards don’t have that character.
Are you writing a simple page as part of a learning project or are you using a framework to create a more complicated page?
If a simple page, then copy your HTML and CSS to your clipboard and paste it into your next post using the backticks that @TechnoBear described. Instead of the actual images, which you are not yet entitled to post, be sure to fill in the width=“” and height=“” attributes in the element so we will know the native size of the images (the CSS may change those sizes).
If you are using a framework such as bootstrap, and do not have a good fundamental knowledge of HTML and CSS, then you were out of your league before you started. Best of luck.
<link rel="stylesheet" type="text/css" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
<div class="main-image"><img src="images/hero-image.png" alt="hero-image"/></div>
<h3>welcome to our little corner of the internet!</h3>
<p>Welcome to the Rouge Pickings, the roaming truck bringing you the freshest ingredients and ideas in food.
Our team works hard so you can be sure our ingredients are always fresh and picked carefully.
Our menu changes everyday and is made with you in mind. We cant wait to come to you! Check out our
locations to see where you can find us.</P>
<li>Flaming Hummus & Falafel Salad</li>
<li>Sizzling Bean Burrito</li>
<li>Green Cloves Tamales</li>
<section id= "reviews">
<h4>OUR AWESOME REVIEWS</h4>
<p>"I got so excited about the yumminess of the falafel salad that i am typing this review as i inhale my lunch
Yes it is that good.... Service was super friendly and quick. Can't wait to see your rogue pickings for
<p>1001 Portero Avenue<br>
San Francsico, <abbr title="California">CA 94110</abbr><br>
<p>Powerd by lots of <span><em>Fresh</em></span> Ingredients</p>
It is good practice to include the native dimensions of images in the <img> element by including the width="" and height="" attributes. The primary reason for including the width="" and height="" attributes in the <img> tags is that they help the page load smoother by telling the HTML to reserve that space for the image.
The advantage to us is that - because your images are on your hard drive and we cannot access them - we can substitute a placeholder with matching dimensions by taking advantage of the dimensions in those attributes.
Please add those dimensions to your HTML as requested in post #4. (It’s not like there are a bunch of them )
CSS stands for Cascading Style Sheet. Cascading means that if two selectors are identical, the rules in the last selector supplement or override those in the earler selector.
All (both) of the HTML elements with the CSS class “half-width” will “float:left” because it overrides the one with “float:right”
You may need to explain why there are so many floats in your code. Floats are not as common today as they once were and are probably causing the border problem that you are experiencing.
There’s much more to talk about that one would normally have learned in a basic HTML/CSS class, but I need to eat something now, so someone else may join this conversation before I return.