oxida
Jun 30 2008, 08:57 AM
| | Many people would like theire website in the center of the screen. This is how to do that.
1. make a new css document.
2. Then place the following code in it.
CODE #main-div { position: absolute; top: 50%; left: 50%; width: 70em; height: 50em; margin-top: -25em; /*always take 1/2 from the size of the height, they have to be negative*/; margin-left: -35em; /*always take 1/2 from the size of the width, they have to be negative*/ }
Then place in your html: the following code.
CODE <div id="main-div"> content </div>
This wil place the div box in the center of the screen, works mostly for any resolution depends on the size of your div box.
Hope this helped some people. |
Reply
Recent Queries:--
placing a div at the center of the screen - 250.98 hr back. (1)
-
"center of the screen" div - 309.02 hr back. (2)
-
center a div screen - 587.71 hr back. (1)
-
div placing - 593.57 hr back. (1)
-
div "center of the screen" - 474.35 hr back. (2)
-
placing a video icon in a div using css - 603.08 hr back. (1)
-
splash div center - 610.80 hr back. (2)
-
open div always center of screen - 734.69 hr back. (1)
-
make a div in the exact centre of the screen - 835.24 hr back. (1)
-
placing div html - 927.56 hr back. (1)
-
place div screen centre - 975.41 hr back. (1)
-
placing a - 994.90 hr back. (1)
-
placing a div in center of screen - 1006.76 hr back. (1)
Similar Topics
Keywords : centering, div, placing, div, center, screen
- Css Centering
(1)
- Dynamic Signatures - The Real Way To Go
Forget placing index.php in a signature.png folder. (8) This is only a very quick tutorial, meant to complement the dynamic signature tutorials that already
exist here. It's nothing new, but it was just brought to my attention that not many people seem
to be aware of this method. This does not cover the actual creation of dynamic signatures, per se -
but rather a better 'trick' to allow you to use dynamic signatures on forums such as this
one. I've noticed that most of the dynamic signature tutorials on this forum state that you
must place a file index.php in a folder .png, in order to trick Invision Power....
- A Tutorial On How To Change Your Window's Screen Name's Icon
(0) Have you ever wondered why you hae a fruity duck next to your name when you sign on to windows
(at the windows welcome screen)? Have you ever wanted to get rid of that fruity duck? Well if
you have and dont know how, this tutorial is for you! 1) Go to Start 2) Go to Controll
Panel 3) Find and Go To User Accounts or for others 4) Then down at the bottom look
again for User Accounts, below "Or Pick A Controll Panel Icon" and click on it 5) Somthing Like
this should have poped up 6) Click on Change My Picture 7) From there you can s....
- Hide Names In Welcome Screen
in XP (0) Annoyed by seeing many User Names in the Welcome Screen you can remove them Some times a user needs
to be added to access a network resource but the user will not be physically logged in to your
system. In such cases you can remove his/her name from the WelcomeScreen in Xp to do this go to
Registry editor as normal go to HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS
NT\CURRENT VERSION\WINLOGON\SPECIALACCOUNTS\USERLIST\ Right click in the
empty space in the right pane and create a new DWORD value Name this new value "Username"....
- Remove Outlook Express Splash Screen
(3) In order to remove the OE Splash screen you must edit your registry: 1. Run regedit 2. Go to the
key named something like
HKEY_CURRENT_USER\Identities\{EC7994FF-9DB7-4854-B5F1-C3D3956DED35}\Software\Mic
rosoft\Outlook Express\5.0 3. Add a new DWORD called "NoSplash" 4. Set it to "1" ....
- Pda Cleaning Issues?
did windex crawl behind your screen? (1) Hey, are you having a problem? windex or some cleaning agent get behind your screen? look no
further. I will show you how to suck that giant blob out of the screen. Please read ALL of the
instructions carefully before attempting! Step 1: make sure the screen is facing up. put
the PDA in a cool, dry place overnight. Even if you wake up in the morning and the blob is still
there, leave it alone. Step 2: Now it's time to break out the vacuum, and the narrow crevis
tool. Put it on, and hold the end like a pencil about a half of an inch away from the screen....
- How To Take A Screen Shot Of Your Desktop.
A Simple Tutorial (22) Lots of people have asked me on how to capture a Screen Shot of their Desktop. So I thought I should
make a tutorial on how to... 1. Press the print screen button which should be: 2. Open an image
editing program like paint: 3. Press Ctrl+V (paste) 4. It should have pasted the Screen Shot,
Now save your image. You learnt how to take a Screen Shot of your Desktop. By .::DAMAN::.....
Looking for centering, div, placing, div, center, screen
|
*RANDOM STUFF*
*SIMILAR VIDEOS*
Searching Video's for centering, div, placing, div, center, screen
*MORE FROM TRAP17.COM*
|
advertisement
|
|