473,670 Members | 2,546 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

absolute positioning inline elements

yb
Hi,

Does an inline element become block element once it is positioned
absolutely.

I couldn't find this explicity mentioned in the spec. (css2)

Oct 22 '05 #1
8 2687
Does an inline element become block element once it is positioned
absolutely.


No.

Gérard
--
remove blah to email me
Oct 23 '05 #2
"yb" <ba*********@ya hoo.ca> wrote:
Does an inline element become block element once it is positioned
absolutely.


The concept of inline and block doesn't exist for absolutely positioned
elements.

What may have confused you is that an absolutely positioned element with
width:auto and height:auto shrink wraps around it's content.

--
Spartanicus
Oct 24 '05 #3
Spartanicus schreef:
"yb" <ba*********@ya hoo.ca> wrote:

Does an inline element become block element once it is positioned
absolutely.

The concept of inline and block doesn't exist for absolutely positioned
elements.

What may have confused you is that an absolutely positioned element with
width:auto and height:auto shrink wraps around it's content.


Spartanicus, can you post an URL where I can find more info on this subject?

Looks like this might be the source of a problem I'm having with a stylesheet made by a collegue, we just can'
t find the 'error' though.
--
Niek
Oct 24 '05 #4
'sNiek <ni*******@nets cape.net> wrote:
Does an inline element become block element once it is positioned
absolutely .


The concept of inline and block doesn't exist for absolutely positioned
elements.

What may have confused you is that an absolutely positioned element with
width:auto and height:auto shrink wraps around it's content.


Spartanicus, can you post an URL where I can find more info on this subject?


It's all in the spec http://www.w3.org/TR/CSS21/

--
Spartanicus
Oct 24 '05 #5
Spartanicus schreef:
Spartanicus , can you post an URL where I can find more info on this subject?

It's all in the spec http://www.w3.org/TR/CSS21/

Okeh,

That's like pointing to the Milky Way when someone asks where he/she can find Amsterdam...

--
Niek
Oct 24 '05 #6
'sNiek <ni*******@nets cape.net> wrote:
Spartanicu s, can you post an URL where I can find more info on this subject?


It's all in the spec http://www.w3.org/TR/CSS21/


Okeh,

That's like pointing to the Milky Way when someone asks where he/she can find Amsterdam...


The document at the url I provided contains a table of contents. I
didn't think you would need help with finding the Positioning section in
that list.

--
Spartanicus
Oct 24 '05 #7
Spartanicus schreef:
'sNiek <ni*******@nets cape.net> wrote:

Spartanicus , can you post an URL where I can find more info on this subject?

It's all in the spec http://www.w3.org/TR/CSS21/


Okeh,

That's like pointing to the Milky Way when someone asks where he/she can find Amsterdam...

The document at the url I provided contains a table of contents. I
didn't think you would need help with finding the Positioning section in
that list.


You're right, it is there. Over the years I seem to have grown an aversion towards the W3C-website, but I can
see that it has become a little more readable nowadays.


--
Niek
Oct 25 '05 #8
yb
In the spec, from section 9.7, it appears to say that the computed
value of "display" for an inline position element is "block".

i.e. "...if 'position' has the value 'absolute' ... display is set
according to the table below."

The table has listed "inline", among others, mapped to "block"

Oct 25 '05 #9

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

Similar topics

12
2335
by: Tom Szabo | last post by:
Hi, Just wondering if there are any disadvantage in absolute positioning controls on a page? In example instead of putting the text fields into a table to align properly, one would absolute position them. I understand the issue with resize, that is not a problem.
13
3040
by: murali | last post by:
Hello everyone, I used absolute positioning with div tag in my website. The page looks cool as long as someone doesn't try to zoom in by increasing the text size (ctrl++ or thru changing font size in browser settings). When someone does that, the layers seem to overlap and the layer with a greater z value pops in front and the other layers are pushed back. The most obvious solution will be to prevent the user from increasing the text...
4
2856
by: Marek Mänd | last post by:
xHTML 1.0 strict and valid css. But though only IE shows up like I like it. Not Opera7.50PR1, not Mozilla1.6. Mozilla and Opera doesnt take interest in absolute positioning herein this testcase (2800 B) at all: http://www.hot.ee/idaliiga/bronn1test.htm (MSIE screenshot http://www.hot.ee/idaliiga/bronn1test.gif)
8
5400
by: Bryan R. Meyer | last post by:
Hello Everyone, I am in the process of redesigning my web page and I ran into a problem while using CSS. I have laid out my web page with auto margins so that the content is centered. I assume that this will enable the content to be centered in any resolution which the viewer may be using. I then tried to position some navigation images on my web page (using absolute positioning). When the browser is resized, the images stay in the...
3
2227
by: horusprim | last post by:
Is there a CSS absolute positioning rendering bug in FF1.02 and IE 6? I have been experimenting with precision absolute positioning in CSS. The following test content was used in the experiment: "This sentence is to be about nine words long. I hope this test suite works. Mary had a little lamb and its fleece was white as snow." Next a macro was used to divide the content into equal sentence fragment spans of the 12 characters each...
2
3159
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...
6
2915
by: Mark | last post by:
hi, i'm trying to position something in the top right corner of a container, but i can't seem to figure out how to get it working. here's the html <div class='thumb'><a href='image.jpg'><img src='photos/thumbs/ bigsmile.jpg'></a><a class='del' href='?p=gallery&del=2'>x</a></div> where 'thumb' is my container, and 'del' should be aligned to the top right. here's the css
3
1380
Mobius Evalon
by: Mobius Evalon | last post by:
I've been staring at this problem and stabbing in the dark at it for a few hours now, and I've finally broken down to the point where I realize I need some help. I'm absolutely positioning most of the elements on my site, found here: http://mobiusevalon.tibbius.com/tibbius/ I'm having problems with the post information displayed at the top left of each post div. The first set appear where they're supposed to, but each consequent post...
14
3308
by: Fistro | last post by:
I'm trying to find a design that would allow me to build web pages without having to worry about compatibility issues (not too much, in any case,,,) I've came across this CSS layout technique: http://alistapart.com/articles/fauxabsolutepositioning It calculates the left offset from a fixed position, as opposed to calculating it from the right edge of the preceding element by using a combination of position: relative, left: 100% and a...
0
8386
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
8903
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
8815
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8592
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
5686
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
4213
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...
0
4393
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2802
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
2044
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.