HI there, it might be perhaps a silly question, but in here http://antobbo.webspace.virginmedia.com/testing/test.htm how do I center the letters in the coloured divs? I want them to be in the middle of the box, but without adding extra divs...is it possible? Can quite do it, sorry
Violet_82
89
Posting Whiz in Training
Recommended Answers
Jump to PostThere are multiple methods available for centering DIVs, but you are limited if you do not want to create any additional DIVs. A great article at http://blog.themeforest.net/tutorials/vertical-centering-with-css/ explains multiple methods for centering text …
Jump to PostI always had trouble on how to do this, but I found Dead Centre to be the best way to implement text centered right in the middle of a
<div>
. It involves using …
Jump to Postyou will most definately need to use more than one div to accomplish this. there are various methods, all well documented and can be found by doing a search.
All 9 Replies
epicrevolt
6
Junior Poster in Training
jwmollman
0
Light Poster
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
Violet_82
89
Posting Whiz in Training
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
NetJunkie
29
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.