Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

The correct way to create some space.

Posted on 2013-06-02
2
Medium Priority
?
334 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Creating a CSS block that only applies to printing By default, all of your CSS applies to every possible view of your page - whether on screen, printed, landscape, touch-screen, or whatever.  You can, however, add CSS that only applies under certai…
As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Suggested Courses

610 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