How to target a CSS ID to a specific HTML tag [closed]

Tags: html,css

Problem :

I'm trying to get this text to center using the following HTML code.

<!DOCTYPE html>
<html lang="en-US">
        <meta charset="UTF-8">
            #index_page h1
                text_align:             center;

        <div id="index_page">
                Summon The Assault

It's not centered in my browser though. Why isn't it working?

Solution :

The error is in your css on the text_align : center; this should be text-align:center;

This should fix it

Hope this helps!

    CSS Howto..

    How do I iterate through array and set classes individually?

    How to use HTC behavior in jQuery CSS for IE?

    How to Remove CSS line-through

    How can I get my text to hug around the top of my image?

    How to create an image tag cloud

    How to create fixed sidebar with Skeleton CSS?

    Colorbox's overlay not showing

    how to align horizontally using CSS

    CSS: 2-column table, how to make one column as small as possible but no wrap and the other as big as possible?

    How to tooltip keep active using HTML and CSS or Jquery?

    How to change parent element css-properties by clicking on his child without javascript

    How do I get a div that appears on hover to overlap all others, without using absolute positioning?

    How to remove extra space in navigation bar? [duplicate]

    How to fill page width of tables with css

    How can i position a background image to the top left and bottom right of a html element?

    How to make div fill the rest of viewport with keeping of aspect ratio (CSS or jQuery)?

    How to avoid orphaned headings in CSS columns?

    how to make an mail to form work

    How to Change main menu color?

    sencha touch 2.0 : How to apply conditional background color to list item

    How to fit a list of images in an HTML div to form a 2D grid?

    How to change this CSS code to get required layout

    How to make text disappear when HTML5 Video has finished loading?

    how to define multiple classes' hover event in css?

    How to addClass with css3 Animation?

    How to expand toggle sidebar more

    How can div with be controlled with responsiveness

    How to correctly apply the .clearfix:after class to HTML?

    How to fix error from posting html element and prevent it from running

    How to convert complex xpath to css