|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi
I wanted to know whats the tag for netscape and explorer to align the page with margin 0 right left and top like the leftmargin="0" in the body tag. Cheers Luis Tena |
|
#2
|
|||
|
|||
|
If I've understood the question, you need to put this in the body tag:
leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" It will eliminate all the margins of the page. |
|
#3
|
||||
|
||||
|
Alternately create in your <head> or between <head> and <body> :
<style> #MainDiv{position:absolute;top:0;left:0;width:800;height;600:} </style> then in your body anything placed between: <div id="MainDiv">your stuff</div> will adhere to those settings, play around with the numbers to create any margins you wish.(in IE or NS 4+) Just remember that if you access anything in that div via Netscape you will have to mention where it is , ie - if you have a form in that div you would access it by document.MainDiv.document.formname.fieldname.value. Regards, Simon. |
|
#4
|
||||
|
||||
|
If you use the following attributes inside your body tag, bottommargin="0" leftmargin="0" marginheight="0" marginwidth="0" rightmargin="0" topmargin="0". This will make your borders 0 in NS 4+ and IE 3+. Just a warning, Netscape 3 does not recognize these tags and you will have a border of about 10 pixels all around. There is nothing you can do about this.
-Craig Anderson |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > margin align, problems with netscape |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|