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. How to put the webpage in the middle of the screen when I use a master page with header and footer

How to put the webpage in the middle of the screen when I use a master page with header and footer

Scheduled Pinned Locked Moved ASP.NET
tutorialquestioncsharpasp-net
5 Posts 2 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.
  • A Offline
    A Offline
    Albert83
    wrote on last edited by
    #1

    Hi everyone, I am using a master page in my asp.net website. I would like the web content to align in the center like facebook for example. I am using the header and footer in the master page. How can I do it? Thank you.

    H 1 Reply Last reply
    0
    • A Albert83

      Hi everyone, I am using a master page in my asp.net website. I would like the web content to align in the center like facebook for example. I am using the header and footer in the master page. How can I do it? Thank you.

      H Offline
      H Offline
      Herman T Instance
      wrote on last edited by
      #2

      In the masterpage you will find the tag. Just add

      after tag and

      before tag. IE:

      A 1 Reply Last reply
      0
      • H Herman T Instance

        In the masterpage you will find the tag. Just add

        after tag and

        before tag. IE:

        A Offline
        A Offline
        Albert83
        wrote on last edited by
        #3

        Thanks for responding. But I didn't see the code. Can you write it again?

        H 1 Reply Last reply
        0
        • A Albert83

          Thanks for responding. But I didn't see the code. Can you write it again?

          H Offline
          H Offline
          Herman T Instance
          wrote on last edited by
          #4

          funny. It is:

          < center >
          Your code here
          < /center >
          
          A 1 Reply Last reply
          0
          • H Herman T Instance

            funny. It is:

            < center >
            Your code here
            < /center >
            
            A Offline
            A Offline
            Albert83
            wrote on last edited by
            #5

            Thank you. I will try it.

            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