473,394 Members | 1,567 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Website Help. Can't center things.

Hello. I recently did something so my webpage's background would auto adjust to the window size but now i can't center anything. I've tried <center> and <div align="center">.

Any suggestions?

Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <title>CSSelect</title>
  4. <link rel="stylesheet" type="text/css" href="scselect.css">
  5.  
  6. <style type="text/css">
  7. body {margin:0px;}
  8. #bg_image {
  9. width: 100%;
  10. height: 100%;
  11. left: 0px;
  12. top: 0px;
  13. position: absolute;
  14. z-index: 0;
  15. }
  16. #contents {
  17. z-index: 1;
  18. position: absolute;
  19. }
  20. </style>
  21. </head>
  22.  
  23. <body>
  24.  
  25. <div id="bg_image">
  26. <img src="http://bytes.com/images/background.jpg" style="width 100%; height: 100%;">
  27. </div>
  28.  
  29.  
  30. <div id="contents">
  31.  
  32. <center>
  33. <img src="http://bytes.com/images/banner.png">
  34. </center>
  35.  
  36.  
  37. <div id="navigation">
  38. |
  39. <a href="index.html">Home</a>     |
  40. <a href="register.html">Register</a>     |
  41. </div>
  42.  
  43. </div>
  44. </body>
  45. </html>
Feb 3 '12 #1
0 1595

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Chuck Bowling | last post by:
Ok, either I'm doing something wrong or the filters in help are worthless... I'm trying to format a string... Nothing special, just formatting... like C++... How do I do a newline? i.e.,...
3
by: VB Programmer | last post by:
I set a breakpoint in my ASP.NET code (Page_Load). But, when I run the application it never stops at the breakpoint. Any ideas? Thanks, Robert
3
by: VB Programmer | last post by:
I have a server that is running Windows Server 2003. My web page is trying to create a file in the C:\inetpub\wwwroot\MyWeb\Secured directory. When it tries to create/write the file it gets...
0
by: samir dsf | last post by:
hi i have pasted page_load, my bindgrid, sort and itemdatabound event. my sorting in not working properly...i tried a couple of ways but there is something i am missing. pls suggest me on this...
3
by: Kathy A. Hertzog | last post by:
Hello. My name is Kathy Hertzog. I am currently the president of Landlord Association.Com, Inc. which has a website for landlords at http://www.LandlordAssociation.Org. We require technical...
3
by: דורון חסידים | last post by:
Hellow, I am a teacher, and trying to install a copy of visual studio .net that received from my school. I insert CD1, klick setup, klick the only option available ''siprerequites'', and than...
0
by: RBCC | last post by:
I am building a website that uses vb.net code to dial up a internet connection, then goes to the microsoft update page and downloads all the updates and puts them in a zip file for safe keeping...
4
by: webdev22 | last post by:
Hello Folks, I have been developing a website for a class project and have been stumped on aligning everything together. For example, the following site (developed by me) uses images which...
0
by: mountainbig | last post by:
I have the following tables with the following Coumns Product -- Partnumber, description, shortcodeid Shortcc -- shortcodeid module -- moduleid, shortcodeid Salesitem -- salesorderid,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.