473,769 Members | 5,518 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

xhtml, css, centering and positioning:abs olute

Hello,

I know most of you are probably going seeing positioning:abs olute; and
centering in the title and saying, oh no! not again! Do a google
search!

Actually, I've found many helpful resources online and realize that my
case may be a bit more challenging.

I'm trying to create a table-less layout that looks something like:
http://www.twocentcalls.com/images/panel_test.jpg

However the only way I can get the staggered panels is by using
absolute positioning and manipulating the z-index. However as I need
this whole panel-layout to be dead center, I'm running into problems.

Can anyone recommend a way to achieve what I'm looking for? When I use
relative positioning and take advantage of the 'float' properties, I
can achieve what I want for the 1st top layer, however the middle-left
text box (green) gets pushed to the bottom of the top-right image
(house's door)

Any ideas on how I can achieve what I need?

Thank you in advance!

Cheers
-Kevin

Jul 21 '05 #1
2 2612
"kevinC" <kc*******@gmai l.com> wrote:
I'm trying to create a table-less layout that looks something like:
http://www.twocentcalls.com/images/panel_test.jpg


That works on a fixed size output medium like print media, not on the
web.

Create something new suitable for the media.

--
Spartanicus
Jul 21 '05 #2
On 7 Jul 2005 07:16:19 -0700, "kevinC" <kc*******@gmai l.com> wrote:
Hello,

I know most of you are probably going seeing positioning:abs olute; and
centering in the title and saying, oh no! not again! Do a google
search!

Actually, I've found many helpful resources online and realize that my
case may be a bit more challenging.

I'm trying to create a table-less layout that looks something like:
http://www.twocentcalls.com/images/panel_test.jpg

However the only way I can get the staggered panels is by using
absolute positioning and manipulating the z-index. However as I need
this whole panel-layout to be dead center, I'm running into problems.

Can anyone recommend a way to achieve what I'm looking for? When I use
relative positioning and take advantage of the 'float' properties, I
can achieve what I want for the 1st top layer, however the middle-left
text box (green) gets pushed to the bottom of the top-right image
(house's door)

Any ideas on how I can achieve what I need?

Thank you in advance!

Cheers
-Kevin


Are you talking about a container div?

Jul 26 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2365
by: Zeke Koos | last post by:
<body> <div style="position:absolute; left:0px; top:0px; width:780px; height:42px; "> <img src="images/CW---Webpage_01.png" width=780 height=42> </div> <div style="position:absolute; left:0px; top:42px; width:52px; height:488px; "> <img src="images/CW---Webpage_02.png" width=52 height=488> </div>
5
5007
by: Duane Lambe | last post by:
On some suggestions from this group, I've started to turn my internal helpdesky site for our company to non-absolute positioning. I've been reading O'Reilly's CSS book, and several web sites and tips. For the most part, things are going OK, but I can't seem to find an answer to a particular problem. Using a simpler example, below's some stuff...what I'm trying to do, is get the DIVs inside the .mainbody DIV to be 100% of their parent's...
0
1769
by: Jonas Smithson | last post by:
<div style="position: relative;> <!-- I'm the parent --> blah blah blah <div style="position: absolute; bottom: 0;> <!-- I'm the child --> blah blah blah </div> </div> The bottom of the child div lines up with the bottom of the parent div in Win IE6 and in Win NS6. However, Mac IE5 has a nasty bug -- it lines up the bottom of the child div with the *top of the body* -- I kid you
6
2673
by: Gustaf Liljegren | last post by:
Here's what I'm trying to achieve: 1. A <div>, centered on screen, 600px wide and 100px high, with a background-image (also 600 x 100). 2. Text (an <h1> element) positioned with precision inside the <div>, on the image. 3. A similar result in IE and FF... Here's some of the XHTML:
9
6256
by: Faz | last post by:
Hi I'm having some real trouble with a header I have created within a container. I have two problems; firstly the menu (a horizontal UL) will not centre within the surrounding header, despite attempts to use the following within the #header declaration: margin-left: auto; margin-right: auto; The image above the list is easily centred using the 'text-align' property,
15
13507
by: red | last post by:
How do I center two side by side divs ? I've been writing css pages for a while but there's one thing tha still eludes me. I can center a div with margin auto. I can place two divs side by side with float. But I can't center two side by side divs. If I float them and give them auto margins, the auto margins are ignored. If I wrap the two floated divs in another div, the two divs have no
1
6349
by: Mr.Clean | last post by:
I'm having trouble with this. The checkbox is no where near where it is supposed to be and the radio button is not at 206 px away from the left of the window. Looks bad in IE6, even worse in Firefox1.0. I tried using <label> tags but they didn't come out right either. Need the class xxxx_Label because I may be having the text to the left of the check or radiobutton.
2
3164
by: nonsensitor | last post by:
I'm just learning xhtml & css, primarily from westciv's online tutorials and css guide. I've run into a couple of problems with a page I'm developing that I can't figure out. The first problem is that I would like to display some text on top of an image within the header. I've tried using absolute positioning to specify where the phone number should appear in relation to the parent div (#header). However the text appears to be positioned in...
5
4825
by: Markus Ernst | last post by:
Hello This is a test example: http://www.markusernst.ch/anthracite/ http://www.markusernst.ch/anthracite/living_divani.html After googling and experimenting for several hours, I ended up doing this demo with tables. The main problems are the vertical centering of the info area, and of the text inside the squares.
0
9589
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, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
9994
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9863
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
8872
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 project—planning, coding, testing, and deployment—without 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...
0
6673
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3959
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3562
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
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.