Solved

The correct way to create some space.

Posted on 2013-06-02
2
329 Views
Last Modified: 2013-06-02
I have used FrontPage for years to write crummy HTML, but not am redoing my pages with css and having to learn html
I keep running into places where a pargraph runs into an image.2 <br> tags side by side seem to work, but am not sure if this is proper
I know i could also use a <div> tag with a margin or padding
I like using the <p>&nbsp;</p> as my <p> tag is styled to use the proper text

If i use the <p> tag it does not validate
This segment does not validate unlkess i do this <p>&nbsp;</p>
A <br> tag does not create enough space
Some Content
<p>
 <div style="text-align:center">
 <figure>
 <figcaption>Sheathing Replaced</figcaption>
 <img src="images/SkyLight/Newsheathing.jpg" width="400" height="147" alt="New osb sheathing installed" title=""/>
 </figure>
 </div><!--align:center-->
</p>


This works
Some Content
 <br /><br />
 <div style="text-align:center">
 <figure>
 <figcaption>Sheathing Replaced</figcaption>
 <img src="images/SkyLight/Newsheathing.jpg" width="400" height="147" alt="New osb sheathing installed" title=""/>
 </figure>
 </div><!--align:center-->
What is the correct way?
0
Comment
Question by:isnoend2001
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 39214939
Neither!
 <div style="text-align:center;margin-top:20px">
 <figure>
 <figcaption>Sheathing Replaced</figcaption>
 <img src="images/SkyLight/Newsheathing.jpg" width="400" height="147" alt="New osb sheathing installed" title=""/>
 </figure>
 </div><!--align:center-->

Open in new window

Adjust the margin-top as you like. But you shouldn't write css inline, you should use an external css file.
0
 

Author Closing Comment

by:isnoend2001
ID: 39214952
thanks thats what needed to know
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question