| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 17211 | 2002-03-31 04:10:00 | h1 tags in Opera 6? | Guest (0) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 41072 | 2002-03-31 04:10:00 | Using this code <h1><p align='center'>Internet Security</h1> To get the h1 heading in the center of the page. Looks fine in Mozilla, and IE6. But in Opera6 it is centered but the font is not increased. JM |
Guest (0) | ||
| 41073 | 2002-03-31 04:30:00 | JM, try putting the <p> tag on the outside of the <h1> tag eg: <p align='center'><h1>Internet Security</h1> or you could just try using the <center> tag instead of the <p align='center'> but remember to close it (</center>) |
Guest (0) | ||
| 41074 | 2002-03-31 04:46:00 | <p align='center'><h1>Internet Security</h1> That results in the heading being in h1 but not centered. Using the 'center' tag made it look the same as what I had. thanks anyway |
Guest (0) | ||
| 41075 | 2002-03-31 07:45:00 | You can't have a <p> inside a <h1>. It's illogical to have a paragraph inside a heading. Think about it. Opera thinks that you meant: <h1></h1> <p align='center'>Internet Security</p> More logical than what IE/Moz does. |
Guest (0) | ||
| 41076 | 2002-04-01 12:15:00 | JM, good to see it works. For interest, there is a 2nd way of doing it: <center><h1>cat</h1></center> Note how the tags are nested rather than crossed. You work your way in then go out in the opposite order. <center><h1>cat</center></h1> is a crossed tag - it appears to work most of the time but fouls up when you least expect it. Avoid at all cost. |
Guest (0) | ||
| 1 | |||||