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. Centre Align Contents of a Webpage in ASP.NET?

Centre Align Contents of a Webpage in ASP.NET?

Scheduled Pinned Locked Moved ASP.NET
csharpcssasp-netcomquestion
7 Posts 4 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.
  • N Offline
    N Offline
    niting85
    wrote on last edited by
    #1

    hello all I need to center align the contents of my web page as many of the websites does these days(eg. www.msn.com), while reading through diff sites i got to know that we can do it with hlp of css files but not exactly how....can anyone hlp me out on same??

    B P 2 Replies Last reply
    0
    • N niting85

      hello all I need to center align the contents of my web page as many of the websites does these days(eg. www.msn.com), while reading through diff sites i got to know that we can do it with hlp of css files but not exactly how....can anyone hlp me out on same??

      B Offline
      B Offline
      bigphish
      wrote on last edited by
      #2

      it depennds how u align the tables.In tables u can align contents in center.no need to go for css. right click inside the table > build style > align : center

      E 1 Reply Last reply
      0
      • B bigphish

        it depennds how u align the tables.In tables u can align contents in center.no need to go for css. right click inside the table > build style > align : center

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

        please don't use tables, it much better to use div tags and then use css to position Do you want your website to be 800x600 or bigger?

        N 1 Reply Last reply
        0
        • N niting85

          hello all I need to center align the contents of my web page as many of the websites does these days(eg. www.msn.com), while reading through diff sites i got to know that we can do it with hlp of css files but not exactly how....can anyone hlp me out on same??

          P Offline
          P Offline
          P Tagore Srinivas Dhanunjay
          wrote on last edited by
          #4

          Put the content in a div and use javascript to center it. works for all screen resolutions. check this link [^]

          N 1 Reply Last reply
          0
          • E eyeseetee

            please don't use tables, it much better to use div tags and then use css to position Do you want your website to be 800x600 or bigger?

            N Offline
            N Offline
            niting85
            wrote on last edited by
            #5

            Thanks for the information It'll be helpful if you can provide an example of a css file for center aligning.

            1 Reply Last reply
            0
            • P P Tagore Srinivas Dhanunjay

              Put the content in a div and use javascript to center it. works for all screen resolutions. check this link [^]

              N Offline
              N Offline
              niting85
              wrote on last edited by
              #6

              Thanks!! I will try the stuff and will get back to you

              N 1 Reply Last reply
              0
              • N niting85

                Thanks!! I will try the stuff and will get back to you

                N Offline
                N Offline
                niting85
                wrote on last edited by
                #7

                i tried your stuff its gud enough for me but only problem is its not working with mozilla thou its working with IE Could you help me out in this?? Regards Nitin

                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