answersLogoWhite

0


Best Answer

CSS

div.center {text-align:center;} will center the text.

div.center {margin: 0 auto} will center the div without centering the text.

HTML

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can you center a div using css without centering the text?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you center text on deviantart?

"Center TextThe opening tag for centering is , and the closing tag is . If you do not use the closing tag, then all text after the opening tag will be displayed centered."


What button on the ribbon used to center text in cells?

Center button (for the excel crossword puzzle) text centering button (on the Home ribbon in the font section)


When centering horizontally do you click on the center of the page and start typing?

You can begin typing on the left as usual. You then then centre the completed text by various means, like pressing Ctrl and E, clicking on the center icon, using the formatting options. You could also set them first and then type the text.


How do you center ONLY an image in Adobe Dreamweaver CS4 without centering the body text?

I figured it out: the picture needed to be in the <h1> category, not <p> because my CSS sheet had <p> left aligned, and <h1> centered.


Which type of centering result when text is centering between the top and bottom margin?

It is centred vertically.


Which type of centering results when text is centered between the left and right margin?

Up and Down is vertical and Left and Right is Horizontal


Can you open text without minutes?

No. You can not open or send a text without using minutes, but you CAN receive them.


What is centering titles?

Centering titles refers to the practice of aligning the text of a title or heading to the center of a document or page. It is commonly used to visually highlight and give emphasis to the title or main heading. This formatting technique can be applied to various types of documents, such as essays, articles, presentations, or posters.


How do you center the description on your Tumblr?

Try using HTML to the text. Add <CENTER> and </CENTER>, Take a look at the example below; <CENTER> Your texts </CENTER> <CENTER> use before the beginning of the sentence. </CENTER> use to close the text/sentence Hope this helps.


Which type of centering results when text centered between the top and bottom margin?

It is when it is done with Vertical alignment.


The position of text between the top and bottom margins of page is called?

Centering on the page or vertical allignment.


Can you text on an Android tablet without using wifi?

yes