Computer Webmaster Gaming Console Graphics Forum

Welcome to the Computer Webmaster Gaming Console Graphics Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

MK PitStop Main Earn $25 Earn Money Posting Extras Members Blogs Image Hosting User Pages
Go Back   Computer Webmaster Gaming Console Graphics Forum > Webmaster Forum > Website Coding > CSS
Register FAQ/Rules Become A V.I.P. Member Search Today's Posts Mark Forums Read

CSS CSS styling code help for your website, CSS is like art and what makes your website look professional.

Google
Reply
 
LinkBack Thread Tools Display Modes
Old 07-01-2007, 1:17 PM   #1
Michael Daly
 
Michael Daly's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Computed margin possible?

I'm not optimistic on this - I looked at the w3.org site and found
nothing to suggest it's possible:

I have an image at the top of a page with a fixed vertical size of 125
px. Below that is a row of text and below that another content area.

- The image is centered at the top of the background.
- The text line is offset by 125px absolute from the top and is 1.2em
high.
- The content area top margin is 145px.

If I change the text size in FF with <ctrl><+> or <ctrl><->, the text
line changes size and either separates from the following content area
or gets cut off behind it (is overlapped),

If I change the thing to be calculated height - The content area top
margin is 12em (or whatever), then the text line is never overlapped.
However, the text line and the content get separated with larger fonts
since the content area is moving ever lower with larger em sizes.

Ideally, I'd like to have a compound value for the content area:
- The content area top margin is 125px + 1.2em. (static value plus
dynamic value)

Not possible apparently. Does anyone know of a work-around for
something like this?

Mike
 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Advertisements
Old 07-01-2007, 1:17 PM   #2
Bruce A. Julseth
 
Bruce A. Julseth's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Computed margin possible?


"Michael Daly" <MichaelDaly@foo.bar> wrote in message
news:KKmdnUgQPLo-zrzbnZ2dnUVZ_hadnZ2d@magma.ca...
> I'm not optimistic on this - I looked at the w3.org site and found nothing
> to suggest it's possible:
>
> I have an image at the top of a page with a fixed vertical size of 125 px.
> Below that is a row of text and below that another content area.
>
> - The image is centered at the top of the background.
> - The text line is offset by 125px absolute from the top and is 1.2em
> high.
> - The content area top margin is 145px.
>
> If I change the text size in FF with <ctrl><+> or <ctrl><->, the text line
> changes size and either separates from the following content area or gets
> cut off behind it (is overlapped),
>
> If I change the thing to be calculated height - The content area top
> margin is 12em (or whatever), then the text line is never overlapped.
> However, the text line and the content get separated with larger fonts
> since the content area is moving ever lower with larger em sizes.
>
> Ideally, I'd like to have a compound value for the content area:
> - The content area top margin is 125px + 1.2em. (static value plus dynamic
> value)
>
> Not possible apparently. Does anyone know of a work-around for something
> like this?
>
> Mike


Is this newsgroup monitored? I see three messages and none have been
responded too?

Bruce


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-01-2007, 1:17 PM   #3
Mike Scirocco
 
Mike Scirocco's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Computed margin possible?

Michael Daly wrote:
> I'm not optimistic on this - I looked at the w3.org site and found
> nothing to suggest it's possible:
>
> I have an image at the top of a page with a fixed vertical size of 125
> px. Below that is a row of text and below that another content area.
>
> - The image is centered at the top of the background.
> - The text line is offset by 125px absolute from the top and is 1.2em
> high.
> - The content area top margin is 145px.
>
> If I change the text size in FF with <ctrl><+> or <ctrl><->, the text
> line changes size and either separates from the following content area
> or gets cut off behind it (is overlapped),
>
> If I change the thing to be calculated height - The content area top
> margin is 12em (or whatever), then the text line is never overlapped.
> However, the text line and the content get separated with larger fonts
> since the content area is moving ever lower with larger em sizes.
>
> Ideally, I'd like to have a compound value for the content area:
> - The content area top margin is 125px + 1.2em. (static value plus
> dynamic value)
>
> Not possible apparently. Does anyone know of a work-around for
> something like this?
>
> Mike


I'd try javascript, if you can't get it to work send me the page and
I'll see what I can do.

Mike
 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-01-2007, 1:17 PM   #4
Mike Scirocco
 
Mike Scirocco's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Computed margin possible?

Michael Daly wrote:
> I'm not optimistic on this - I looked at the w3.org site and found
> nothing to suggest it's possible:
>
> I have an image at the top of a page with a fixed vertical size of 125
> px. Below that is a row of text and below that another content area.
>
> - The image is centered at the top of the background.
> - The text line is offset by 125px absolute from the top and is 1.2em
> high.
> - The content area top margin is 145px.
>
> If I change the text size in FF with <ctrl><+> or <ctrl><->, the text
> line changes size and either separates from the following content area
> or gets cut off behind it (is overlapped),
>
> If I change the thing to be calculated height - The content area top
> margin is 12em (or whatever), then the text line is never overlapped.
> However, the text line and the content get separated with larger fonts
> since the content area is moving ever lower with larger em sizes.
>
> Ideally, I'd like to have a compound value for the content area:
> - The content area top margin is 125px + 1.2em. (static value plus
> dynamic value)
>
> Not possible apparently. Does anyone know of a work-around for
> something like this?
>
> Mike


These aren't exactly what you're looking for but they might give you
some ideas:

http://www.aglasshalffull.org/css-re...he-W3C-DOM.htm

http://www.devsource.com/article2/0,1895,2103610,00.asp

Mike
 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-01-2007, 1:17 PM   #5
Mike Scirocco
 
Mike Scirocco's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Computed margin possible?

Michael Daly wrote:
> I'm not optimistic on this - I looked at the w3.org site and found
> nothing to suggest it's possible:
>
> I have an image at the top of a page with a fixed vertical size of 125
> px. Below that is a row of text and below that another content area.
>
> - The image is centered at the top of the background.
> - The text line is offset by 125px absolute from the top and is 1.2em
> high.
> - The content area top margin is 145px.
>
> If I change the text size in FF with <ctrl><+> or <ctrl><->, the text
> line changes size and either separates from the following content area
> or gets cut off behind it (is overlapped),
>
> If I change the thing to be calculated height - The content area top
> margin is 12em (or whatever), then the text line is never overlapped.
> However, the text line and the content get separated with larger fonts
> since the content area is moving ever lower with larger em sizes.
>
> Ideally, I'd like to have a compound value for the content area:
> - The content area top margin is 125px + 1.2em. (static value plus
> dynamic value)
>
> Not possible apparently. Does anyone know of a work-around for
> something like this?
>
> Mike


These may be helpful in getting you started:

http://alistapart.com/articles/fontresizing
http://alistapart.com/comments/fontresizing/

Mike


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-01-2007, 1:17 PM   #6
Michael Daly
 
Michael Daly's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Computed margin possible?

Mike Scirocco wrote:

> I'd try javascript, if you can't get it to work send me the page and
> I'll see what I can do.


JS is not an option in this case.

I've decided to do it a bit more brute force - rearranging the existing
<div>s and inserting a new bit on top so that the image size is in one
div and the text size is in a separate one. This didn't look possible
at first, but I've been able to access the HTML and not just the CSS
(don't ask...).

Mike
 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Featured Websites
Free Space
Free Space
Free Space Free Space
Reply
Tags: , ,




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I set a margin inside table cell? f HTML 4 07-01-2007 12:27 PM


Featured Websites




All times are GMT +1. The time now is 6:38 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0
Cheap Computers
MK PitStop Copyright 2005 - 2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98