Solved

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

Posted on 2014-11-25
1
169 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:
HainKurt earned 500 total points
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
This article discusses four methods for overlaying images in a container on a web page
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
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 …

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now