473,396 Members | 1,760 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,396 software developers and data experts.

left edge

Hello,

CSS21 Spec points the following out (9.4.1):

<citation>
In a block formatting context, each box's left outer edge touches the left
edge of the containing block (for right-to-left formatting, right edges
touch).
</citation>

I understand that if there are nested div-elements they will have the same
left edge.

But what, if I want the inner div to be right shifted 10 px?

- padding (outer div)
- margin-left (inner div)
- position:relativ in combination with left (innder div)

all that does not work.

Any ideas?

Best regards,

Oliver

Jun 19 '06 #1
3 1438
Oliver Block wrote:
Any ideas?


I inserted a spacer div before inner div with the following css properties:

#spacer {
float:left;
height:100%;
width: 10px;
}

But I'd really like to know how you would have solved that problem.:)
Jun 19 '06 #2
Oliver Block <ne********@block-online.eu> wrote:
CSS21 Spec points the following out (9.4.1):

<citation>
In a block formatting context, each box's left outer edge touches the left
edge of the containing block (for right-to-left formatting, right edges
touch).
</citation>

I understand that if there are nested div-elements they will have the same
left edge.

But what, if I want the inner div to be right shifted 10 px?

- padding (outer div)
- margin-left (inner div)
- position:relativ in combination with left (innder div)

all that does not work.


Sure it does:
http://homepage.ntlworld.com/spartanicus/temp.htm

Although using relative positioning would likely not be what you want.

--
Spartanicus
Jun 19 '06 #3
Spartanicus wrote:
all that does not work.


Sure it does:
http://homepage.ntlworld.com/spartanicus/temp.htm


You are right. On your site it does. I mine, it didn't.
I rewrote the page with a different box model and now it works, too.

--Oliver

Jun 19 '06 #4

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

Similar topics

3
by: Salagir | last post by:
This is something that I've found, and it seems not to be a bug for IE and moz do the same thing. I put an image on the left with align="left" or float:left, and want some text on its right....
9
by: Eric | last post by:
I would like to setup a two column layout for my web page using CSS. I would like the Left column width to be auto. Can I have the right column be offset by 8 pixels from the right edge of the...
4
by: Alex Bell | last post by:
I am developing at http://www.members.iinet.net.au/~abell1/test/index.htm with city.css at http://www.members.iinet.net.au/~abell1/test/city.css. Both validate. In index.htm there is a block of...
4
by: Harlan Messinger | last post by:
What is *supposed* to be the way to specify the horizontal offset of (a) the list item's marker and (b) the list item's content? In particular, see ...
2
by: Wiz | last post by:
Greetings the group! I see from a few previous postings that I am not the only person having a problem with hidden list item bullets. This question applies to both IE 6, current version, and...
0
by: Ferdi Smit | last post by:
I wrote a generic algorithm for boost.graph to merge two vertices, ie. the end-points of an edge are joined together as if they are a single vertex. I'm currently doing this by creating a new...
10
by: Sender | last post by:
somebody wrote the solution for this many many days ago on this newsgroup....but I lost the notes..... and everyone knows how hard it is to search on newgroups (archives).... so here I am asking...
19
by: JB | last post by:
Hi All, Why doesn't this work in Firefox but is perfect in IE6? In IE6, the text is on the same line but in Firefox, the left aligned text is on the line above the right aligned text. ...
4
by: =?Utf-8?B?cmFuZHkxMjAw?= | last post by:
I have two labels on a form. The text for these two labels is assigned at runtime. lblLeft lblRight If the text for lblLeft is wider than the default, the text runs into lblRight. How do...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
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,...

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.