space between elements...
-
hi friends... i'm creating two texboxes in a Div dynamically using javascript. i want to add some space between the 2 textboxes.. how i can do this.. Thks in advance..
Use to force spaces, or do a div between and set the width using CSS.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
Use to force spaces, or do a div between and set the width using CSS.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
Use to force spaces, or do a div between and set the width using CSS.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
yes.. i already tried vat u suggest. both. but its not working.. any other.. when i use how much will give... ???? !!! so its not possible..
-
Suppose my dynamic div width = 100%. and txt1 = 20% txt2 = 20 % . so i want to put (100- (20 + 20 )) space between the textboxes.. in %.
If you want one hard right and one hard left, I'd just float them inside the div, or put them in a table.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
You could try using
instead What do you mean by its not working, be more specific. A line break is given by a
and will create a small space on the same linevats 'instead'. i tried using div with width 50%. but its not showing. An i used line break
already, so that next controls will create next line.. Remind i have two textboxes in a line.. like txtA1 --need space-- txtB1 txtA2 --need space-- txtB2 txtA3 --need space-- txtB3 -
If you want one hard right and one hard left, I'd just float them inside the div, or put them in a table.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
vats 'instead'. i tried using div with width 50%. but its not showing. An i used line break
already, so that next controls will create next line.. Remind i have two textboxes in a line.. like txtA1 --need space-- txtB1 txtA2 --need space-- txtB2 txtA3 --need space-- txtB3my code is... var newFileInputID = 'Ediv' + newFileIndex; var newFileInput = document.createElement('div'); newFileInput.setAttribute("id", newFileInputID); newFileInput.innerHTML = '<input id=a' + newFileIndex + ' name=a' + newFileIndex + ' type="text" readonly="readOnly" class="textbox" /> '; newFileInput.innerHTML += '<input id=b' + newFileIndex + ' name=b' + newFileIndex + ' type="text" readonly="readOnly" class="textbox" /> '; newFileInput.innerHTML += '<img alt="" id=c'+ newFileIndex + ' name=c' + newFileIndex + ' src="Images/delete_16x16.gif" class="images_del" onclick="DeleteDiv(this.id)" />'; newFileInput.innerHTML += '<br>';
-
my code is.. var newFileInputID = 'Ediv' + newFileIndex; var newFileInput = document.createElement('div'); newFileInput.setAttribute("id", newFileInputID); newFileInput.innerHTML = '<input id=a' + newFileIndex + ' name=a' + newFileIndex + ' type="text" readonly="readOnly" class="textbox" /> '; newFileInput.innerHTML += '<input id=b' + newFileIndex + ' name=b' + newFileIndex + ' type="text" readonly="readOnly" class="textbox" /> '; newFileInput.innerHTML += '<img alt="" id=c'+ newFileIndex + ' name=c' + newFileIndex + ' src="Images/delete_16x16.gif" class="images_del" onclick="DeleteDiv(this.id)" />'; newFileInput.innerHTML += '<br>';
-
If you have two elements and want one hard left and one hard right, you can position them easier by placing them in a table. Align one right and one left.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
If you have two elements and want one hard left and one hard right, you can position them easier by placing them in a table. Align one right and one left.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
but wen i tried with table , controls are showing but not in the table. i given the table border = 2px. and tested.
Then your table was buggered. Fix it. If the tr/td tags are not correct, it will appear outside.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
Then your table was buggered. Fix it. If the tr/td tags are not correct, it will appear outside.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
where you want the two items. The issue is that it needs to be well formed and your items to position need to be inside the table.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
where you want the two items. The issue is that it needs to be well formed and your items to position need to be inside the table.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
You could try using
instead What do you mean by its not working, be more specific. A line break is given by a
and will create a small space on the same line