Forum Moderators: open
Height attribute is working fine but width and align attribute are not working..
Can ANy one Hepl Me TO Resolve This?
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.