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

Style Sheet Help

I am totally new, never done any CSS (ok a tiny bit) before, so please
bear with me....

I have been looking at the following:
http://www.brainjar.com/css/position...olutedemo.html

And am now wondering, how could I make DIV A1 appear 10px from the top
left hand corner of DIV A, whatever DIV A's position is set to?

I've been playing about a little but so far had no luck.
Sep 28 '07 #1
2 1605
On Fri, 28 Sep 2007 12:35:01 +0100, Mick Walker wrote:
[...]
I have been looking at the following:
http://www.brainjar.com/css/position...olutedemo.html

And am now wondering, how could I make DIV A1 appear 10px from the top
left hand corner of DIV A, whatever DIV A's position is set to?

I assume that by 'position' you mean the CSS property rather than the
on-screen position? Just set DIV A1's top and left to 10px rather than
150px and make sure that DIV A establishes a new containing block (for
example, by using position:relative). Information on containing blocks can
be found here:

http://www.w3.org/TR/CSS21/visudet.h...-block-details
--
Safalra (Stephen Morley)
http://www.safalra.com/hypertext/html/
Sep 28 '07 #2
Safalra wrote:
>
I assume that by 'position' you mean the CSS property rather than the
on-screen position? Just set DIV A1's top and left to 10px rather than
150px and make sure that DIV A establishes a new containing block (for
example, by using position:relative).
By using position:relative, fixed or absolute as in the OP's example.
Per 4. in the below given link.
Information on containing blocks can
be found here:

http://www.w3.org/TR/CSS21/visudet.h...-block-details
--
Gus
Sep 28 '07 #3

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

Similar topics

2
by: Mark | last post by:
Hi - I want to allow users of an intranet application, to select their own colours etc. So I have a tbale in my database, which has fields called bgcolour, fontcolour etc. As I want all pages...
2
by: Luke Bellamy | last post by:
Hi, I have been looking for a way to incorperate several different style sheets into a web page (i.e cascading effect). I have looked into the @import statement which seems to do what I want but...
2
by: Herb Stull | last post by:
I'm trying to give users a choice of the visual interface used in my ASP.NET application using Cascading Style Sheets. Ideally I'd like to offer them several choices for backgrounds, fonts, etc....
3
by: Irfan Akram | last post by:
Hi Guys, Where do we specify style sheets link, so that it is used through the asp.net web-application? Will wait for a useful response, Thanks, I.A..
1
by: Amanda H. | last post by:
I posted about this a few days ago, and I got a few suggestions that fixed part of my problem. I am using a PHP script to switch external style sheets when the viewer clicks on the style link. ...
8
by: pamelafluente | last post by:
Hi guys, Is it possible to add "onload" (via Javascript) a new class to the <styleheader section? If yes, how would that be done ? <style type="text/css" media="screen"> .NewStyleClass{...
10
by: pamelafluente | last post by:
Hi, this time I am trying to add a style on the fly.I wish equivalency with this one (only the menuItemStyle line): <head> <style type="text/css" media="screen"> ... some static styles ......
1
by: Looch | last post by:
Hi All, I have a need for a user to open an XML file from a web site and have it open based on a style sheet, not just looking at the raw XML data. I'm wondering what the best way to go about...
4
by: fjm | last post by:
Hello everyone. I’d like to know how to handle multiple style sheets. I have css tabs that have a style sheet and then I also have a separate style sheet for the content that goes inside the tab. ...
4
Frinavale
by: Frinavale | last post by:
So a while ago I created a Tab Strip Control (before the AjaxToolkit had theirs otherwise I would have probably just used theirs). When I looked at the AjaxToolkit control to see how they got...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.