This is a discussion on "Positioning the layer (Div tag) compatible" within the Web Page Design section. This forum, and the thread "Positioning the layer (Div tag) compatible are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Positioning the layer (Div tag) compatible
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
I want to position the layer compatible for all the browsers (Div tag)
Someone pl. suggest the javascript code for all the browsers like IE, Mozilla, Netscape and etc. |
|
|
|
#2
|
|||
|
|||
|
Re: Positioning the layer (Div tag) compatible
I don't understand the question sorry; could you expand?
|
|
#3
|
|||
|
|||
|
Re: Positioning the layer (Div tag) compatible
I placed a image in a layer using Div tag. When the page is viewed in IE the position of the image is OK. But the image is slightly in a different location with Mozilla browser... I need a javascript to position the image in a desired location. Pl. suggest
|
|
#4
|
|||
|
|||
|
Re: Positioning the layer (Div tag) compatible
do you have a link to it?
|
|
#5
|
|||
|
|||
|
Re: Positioning the layer (Div tag) compatible
no it is a static image placed in the Div tag.
Earlier I used the JavaScript code it starts with document.write.... |
|
#6
|
||||
|
||||
|
Re: Positioning the layer (Div tag) compatible
Browsers handle CSS differently. Set the margin and padding to zero and see how it works:
|
|
#7
|
|||
|
|||
|
Re: Positioning the layer (Div tag) compatible
I have not used any CSS it is a simple html page
|
|
#8
|
||||
|
||||
|
Re: Positioning the layer (Div tag) compatible
Um. Then learn it because you can't do that without it.
|
|
#9
|
|||
|
|||
|
Re: Positioning the layer (Div tag) compatible
Javascript isn't used for positioning, css is. Javascript might be used for changing the position dynamically, but you should fix the initial position problem before you start playing with javascript.
(X)HTML without CSS is like spaghetti without the sauce. |
|
#10
|
|||
|
|||
|
Re: Positioning the layer (Div tag) compatible
Hehehe, nice analogy!
|
|
#11
|
|||
|
|||
|
Re: Positioning the layer (Div tag) compatible
mrun,
try putting this in the head of your page" <STYLE TYPE="text/css" MEDIA=screen> <!-- #positions{ margin: 0; padding: 0; } --> </STYLE>and this beside each of your div tag: <div id="positions"> |
|
#12
|
||||
|
||||
|
Re: Positioning the layer (Div tag) compatible
Haha, yeah, good analagy.
Also, my last post wasn't meant to be rude. It kind of sounded snappish, but I meant it in a good way! |
|
#13
|
|||
|
|||
|
Re: Positioning the layer (Div tag) compatible
Could you include a link to the webpage your talking about, if it's online that is.
|
![]() |
| Tags |
| browers compatible, div tag, layer position |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| XHTML compatible Form like Webforumz. | JustinStudios | PHP Forum | 4 | Feb 5th, 2008 22:37 |
| Layer positioning | leosuth | Web Page Design | 2 | Feb 11th, 2007 13:17 |
| Positioning a Div Layer | escaflowne11 | Web Page Design | 6 | Oct 6th, 2006 22:45 |
| [SOLVED] Convert script to NS6 compatible - Please Help! | Anonymous User | JavaScript Forum | 1 | Feb 20th, 2005 02:35 |