Wrox Programmer Forums
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 28th, 2004, 12:32 PM
Friend of Wrox
 
Join Date: Sep 2004
Posts: 103
Thanks: 0
Thanked 0 Times in 0 Posts
Default

the IE version is 6.0.28.
>According to the W3C, frameborder, marginwidth and marginheight are standard attributes, so why >not just use those?
use them where? in the style sheet they wouldn't work and directly in the iframe tag I'm not allowed to do so since as I mentioned all the appearance of any element are to be set through style sheets so that they can be changed with the least effort...
As for border-spacing I have had a lot of problems but in other cases I tried to minimize the damn space through other attributes first and then set the remainder's bgcolor the same as the main page background color but the trick won't apply here cos I want to adjust the iframe position precisely and I have to omit the margins...
about the example I don't think it would fit in a forum and there's no means to deploy it on web. A small example showing the effect is a good idea but here it's midnight now and I'm going off
I hope I'll have the time to do it tomorrow...
I wish other communities such a jakarta struts were as active as javascripts communities are...
thanks again...

 
Old September 28th, 2004, 03:45 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

> use them where? in the style sheet they wouldn't work and directly in the iframe
> tag I'm not allowed to do so since as I mentioned all the appearance of any element
> are to be set through style sheets so that they can be changed with the least effort...

lol, sounds like a perfectly viable argument to standardize on Mozilla to me!

I did some fooling with this and in IE there is no way to get around the frame border without markup. You're going to have to insert frameborder="0" in the source of the document to get rid of that border, then you can control the CSS border from the style sheet with the border property. This isn't necessary in Mozilla because it treats the CSS border as being the one and only border of the frame, not two separate borders as is the case with IE.

> A small example showing the effect is a good idea but here it's midnight now and
> I'm going off

Well that would be best, a simple testcase that demonstrates what you want is what I meant by that.

As far as the other aspects of the look and feel, this should be entirely controllable with CSS. Well in theory at least, sometimes IE has ideas of its own.

Regards,
Rich

--
[http://www.smilingsouls.net]
[http://pear.php.net/Mail_IMAP] A PHP/C-Client/PEAR solution for webmail
 
Old September 29th, 2004, 12:14 AM
Friend of Wrox
 
Join Date: Sep 2004
Posts: 103
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi,
   I think I've got the answer already(I can't set it through style sheets in IE),so there's no point in sending a testcase.I hope mozila soon support innerText and innerHTML attributes which come in handy very much...

 
Old October 2nd, 2004, 01:48 AM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Mozilla/Gecko already supports the innerHTML property.

Regards,
Rich

--
[http://www.smilingsouls.net]
[http://pear.php.net/Mail_IMAP] A PHP/C-Client/PEAR solution for webmail
 
Old October 4th, 2004, 04:05 AM
Friend of Wrox
 
Join Date: Sep 2004
Posts: 103
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
  Sorry I thought that the problem that I've got with my page that won't work bugless in firefox is because firefox don't support the innerHTML property but the problem was when I assigned an ID for a <td> tag I couldn't easily set the innerHTML so: xid.innerHTM="x";
I have to do it so: document.getElementById("xid").innerHTML="x";
Does it worth to change the whole code and replace each id name with a document.getElementById(id name) just to make it work with firefox too(and not sure if it works fine the way it does on IE)?
No Way!






Similar Threads
Thread Thread Starter Forum Replies Last Post
values from one iframe to another iframe URGENT raaj Beginning PHP 2 February 27th, 2007 12:19 PM
set the frameborder of an iframe to zero in CSS crmpicco CSS Cascading Style Sheets 3 April 12th, 2006 03:04 AM
How to use css with <iframe frameBorder="no"> bekim CSS Cascading Style Sheets 1 January 20th, 2005 08:57 AM
Image Properties & CSS TSEROOGY CSS Cascading Style Sheets 2 October 10th, 2004 09:26 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.