Solved

How to align text in a devision panel horizontally and vertically?

Posted on 2014-11-25
1
200 Views
Last Modified: 2014-11-25
Hi,

I have a devision called "breakfast" on my site. And I would like some text in it. How can I align the text not only horizontally but also vertically in the devision.

greetings, Peter Kiers
0
Comment
Question by:peterkiers
1 Comment
 
LVL 51

Accepted Solution

by:
Huseyin KAHRAMAN earned 500 total points
ID: 40464670
Here:

<div id=breakfast style="vertical-align:xxxxx; text-align:xxxxxx">
some content here...
</div>

Horizantal align
http://www.w3schools.com/css/css_align.asp

Vertical align
http://www.w3schools.com/cssref/pr_pos_vertical-align.asp
0

Featured Post

Industry Leaders: 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

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
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…

679 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