Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. space between elements...

space between elements...

Scheduled Pinned Locked Moved ASP.NET
javascript
17 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S SamRST

    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..

    E Offline
    E Offline
    eyeseetee
    wrote on last edited by
    #5

    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

    S E 2 Replies Last reply
    0
    • S SamRST

      Suppose my dynamic div width = 100%. and txt1 = 20% txt2 = 20 % . so i want to put (100- (20 + 20 )) space between the textboxes.. in %.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #6

      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 )

      S 1 Reply Last reply
      0
      • E eyeseetee

        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

        S Offline
        S Offline
        SamRST
        wrote on last edited by
        #7

        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-- txtB3

        S 1 Reply Last reply
        0
        • C Christian Graus

          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 )

          S Offline
          S Offline
          SamRST
          wrote on last edited by
          #8

          sorry dear .. i didnt get u..

          S C 2 Replies Last reply
          0
          • S SamRST

            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-- txtB3

            S Offline
            S Offline
            SamRST
            wrote on last edited by
            #9

            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>';

            1 Reply Last reply
            0
            • S SamRST

              sorry dear .. i didnt get u..

              S Offline
              S Offline
              SamRST
              wrote on last edited by
              #10

              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>';

              1 Reply Last reply
              0
              • S SamRST

                sorry dear .. i didnt get u..

                C Offline
                C Offline
                Christian Graus
                wrote on last edited by
                #11

                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 )

                S 1 Reply Last reply
                0
                • C Christian Graus

                  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 )

                  S Offline
                  S Offline
                  SamRST
                  wrote on last edited by
                  #12

                  but wen i tried with table , controls are showing but not in the table. i given the table border = 2px. and tested.

                  C 1 Reply Last reply
                  0
                  • S SamRST

                    but wen i tried with table , controls are showing but not in the table. i given the table border = 2px. and tested.

                    C Offline
                    C Offline
                    Christian Graus
                    wrote on last edited by
                    #13

                    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 )

                    S 1 Reply Last reply
                    0
                    • C Christian Graus

                      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 )

                      S Offline
                      S Offline
                      SamRST
                      wrote on last edited by
                      #14

                      Ok.. can u please tell me how & where to include the table tag..

                      C 1 Reply Last reply
                      0
                      • S SamRST

                        Ok.. can u please tell me how & where to include the table tag..

                        C Offline
                        C Offline
                        Christian Graus
                        wrote on last edited by
                        #15

                        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 )

                        S 1 Reply Last reply
                        0
                        • C Christian Graus

                          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 )

                          S Offline
                          S Offline
                          SamRST
                          wrote on last edited by
                          #16

                          Ok... i have a table named "TabMain" and a row named "DynRow. i want to create the dynamic tables inside that row. hope u saw my code i posted .. above..

                          1 Reply Last reply
                          0
                          • E eyeseetee

                            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

                            E Offline
                            E Offline
                            eyeseetee
                            wrote on last edited by
                            #17

                            Sorry I meant 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

                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • World
                            • Users
                            • Groups