Click here to Skip to main content
15,887,386 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Web development Pin
mtone27-Jan-05 8:28
mtone27-Jan-05 8:28 
GeneralRe: Web development Pin
Yulianto.27-Jan-05 14:11
Yulianto.27-Jan-05 14:11 
GeneralRe: Web development Pin
mtone28-Jan-05 2:47
mtone28-Jan-05 2:47 
GeneralRe: Web development Pin
Yulianto.28-Jan-05 16:06
Yulianto.28-Jan-05 16:06 
GeneralSimple question Pin
Yulianto.25-Jan-05 16:17
Yulianto.25-Jan-05 16:17 
GeneralRe: Simple question Pin
Yulianto.25-Jan-05 16:42
Yulianto.25-Jan-05 16:42 
GeneralRe: Simple question Pin
markkuk25-Jan-05 21:12
markkuk25-Jan-05 21:12 
GeneralDHTML div dilemma Pin
Nino_125-Jan-05 7:11
Nino_125-Jan-05 7:11 
Hi All,

I'm attempting to center three div layers within a tabbed view, I'm using a function that was written by a co-worker which is great but I cannot find out were to callout the "resize" within the code.

Here is what I have for the function:

function centerDivs(){<br />
	widthOfDiv = '720'; //put the div width into variable<br />
	centeringTheDiv = (screen.width) ? (screen.width-widthOfDiv)/2 : 0; //find out where the middle is widthwise<br />
	//do this for each div layer	<br />
	document.all["LayerOne"].left = centeringTheDiv;<br />
        document.all["LayerTwo"].left = centeringTheDiv;<br />
        document.all["LayerThree"].left = centeringTheDiv;<br />
}<br />
<br />
<body onload="centerDivs()">


Now! where do I plant the resize method within the code. I've tried to center these layers by surrounding with a table and centering through the "center" tag but the layers always snap back to the left.

Any suggestions would be great.

Thanks In Advance.

Nino
GeneralHere's the Fix !! Pin
Nino_126-Jan-05 6:10
Nino_126-Jan-05 6:10 
Generalflash files Pin
sianatia25-Jan-05 0:01
sianatia25-Jan-05 0:01 
GeneralRe: flash files Pin
JKroschel25-Jan-05 10:52
JKroschel25-Jan-05 10:52 
GeneralConfiguring IIS at application deployment Pin
J4amieC23-Jan-05 22:29
J4amieC23-Jan-05 22:29 
GeneralRe: Configuring IIS at application deployment Pin
J4amieC24-Jan-05 0:25
J4amieC24-Jan-05 0:25 
Questionhow to import address book from hotmail account into my webpage Pin
lavanm23-Jan-05 18:26
lavanm23-Jan-05 18:26 
Generalisapi ext - access denied writing a txt file Pin
aagmon23-Jan-05 2:24
aagmon23-Jan-05 2:24 
Generalhtml and asp pages in vs .net Pin
brian5521-Jan-05 10:57
brian5521-Jan-05 10:57 
GeneralFrontPage EMail Question Pin
Small Rat21-Jan-05 7:12
Small Rat21-Jan-05 7:12 
GeneralCalling Web servicec without using proxy and giving xml as input Pin
dan_aravind21-Jan-05 1:24
dan_aravind21-Jan-05 1:24 
Generaldifficulty with frames Pin
ojovjm20-Jan-05 18:09
ojovjm20-Jan-05 18:09 
GeneralRe: difficulty with frames Pin
Gavin Jeffrey21-Jan-05 0:58
Gavin Jeffrey21-Jan-05 0:58 
GeneralRe: difficulty with frames Pin
ojovjm21-Jan-05 4:32
ojovjm21-Jan-05 4:32 
GeneralRe: difficulty with frames Pin
Roger Wright21-Jan-05 21:42
professionalRoger Wright21-Jan-05 21:42 
GeneralRe: difficulty with frames Pin
nagarajuepuri25-Jan-05 6:54
nagarajuepuri25-Jan-05 6:54 
Generalcsv import cannot find file on desktop Pin
orangetree20-Jan-05 16:12
orangetree20-Jan-05 16:12 
QuestionHow to integrate C++ application with ASP.net Web Application? Pin
webdevelopex19-Jan-05 15:37
webdevelopex19-Jan-05 15:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.