Forum Moderators: open

Message Too Old, No Replies

InfoMessage Not Displayed At Centre Of The Page while working in Mozil

Info Message is not displayed at centre

         

mantix

9:19 am on Mar 18, 2009 (gmt 0)

10+ Year Member



<link rel="stylesheet" type="text/css" href="/fusion/StaticContent/css/tabStyle.css" />
<style type='text/css'>
div#niftyInfo{background: #fad163; width: 250;height:750;align: center;}
</style>

Height attribute is working fine but width and align attribute are not working..

Can ANy one Hepl Me TO Resolve This?

oluoch28394

7:48 pm on Mar 21, 2009 (gmt 0)

10+ Year Member



If in your html code you have id=niftyInfo; declared,
you just need #niftyInfo {......} in your css. Using div applies the style to all div tags.

You don't need spaces after your colons (:), you need them after your semi-colons (;).

You need units for your height and width, ie. px or % or cm.

align property does not work with all content and works differently with different browsers, margin might be what you need.

Try something like this:
#niftyInfo {
background-color:#fad163;
width:250px;
height:750px;
margin:auto auto;
}

Nb. Indenting (formatting as i have done) makes your code more readable.