473,657 Members | 2,481 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Website Help. Can't center things.

1 New Member
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 1612

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

Similar topics

5
1270
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., assigning a string to a textbox... txt.Text = "My first line...\n My second line...\n My third line...";
3
3002
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
1171
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 this error: Access to the path "C:\inetpub\wwwroot\MyWeb\Secured\AsciiInfo.pwa" is denied. I think it's a permissions issue in either IIS or Server 2k3. But, I'm not
0
1188
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 .... i hadnt been able to figure out the solution for this. here is the original display in the dg==> Category Description Size(KB) Last Modified
3
1521
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 assistance to continue maintaining and updating our growing website business. We are looking for people who are skilled in HTML, ASP.net, database management (currently Access), scripting, search engine placement, connections with sites that accept...
3
1028
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 there is a message telling that there is another program needs to do reboot so I can install .net . I am rebooting, but again the same thing. There is no another program that I know that is running in my computer.
0
805
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 automatically. Is there code to do this? John
4
1174
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 takes awhile to load. Old Site: http://www.personal.psu.edu/sbk142/handy.html The new site I'm creating utilizes CSS and DIV tags. However, as you can see by the other link down below, the Latest News section is not aligned with the Mission...
0
876
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, accountid, Partnumber, saleslineid configuration -- moduleid, accountid I am looking for the following colums back
0
8394
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8306
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8825
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8605
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7327
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6164
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4152
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1615
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.