We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexSuggestions & BugsSoftware Bugs › export CSS typo
Page Index Toggle Pages: 1
export CSS typo (Read 1480 times)
export CSS typo
May 2nd, 2005, 9:23pm
 
export this code and run the index file in Firefox:
Code:

void setup(){
size(800,600);
}
void draw(){}

Note the applet is somewhat askew.

The cause is in the CSS:
Code:

<style type="text/css">
<!--

body {
background: #666666;
color: #FFFFFF;
font-family: "Bitstream Vera Sans", 'Lucida Grande', Arial, Helvetica,
Lucida, sans-serif;
font-size: 80%;
}

a:link {
color: #CCCC00;
}

a:visited {
color: #CCCC00;
}

#content {
width: 400px; /* this causes the problem I believe */
margin: auto;
}

-->
</style>

IE seems to ignore #content, Firefox doesn't. It justs shunts the applet offscreen. (Yes I know how to fix it, but I thought you should know, and the file opener still goes off of the screen - folders don't help, I've got too much random code lying around).
Re: export CSS typo
Reply #1 - May 2nd, 2005, 9:32pm
 
i guess you are familiar with the concept of keeping folders in other folders, right? Smiley

F
Re: export CSS typo
Reply #2 - May 3rd, 2005, 8:29pm
 
Everything you drop, someone has to pick up. I can pick up the litter at my end alright. But there's still litter at the P87 end.

(PS: I just found the "complete" reference section the other day. Fantastic job guys - no sarcasm, I'm very happy with it.)
Re: export CSS typo
Reply #3 - May 3rd, 2005, 9:31pm
 
do you have alternate css code that would fix things but would give us the desired behavior? (i'm not a css expert and don't know when casey will get to it). also, you can edit your file directly in lib/applet.html to get a working default template for yourself.

the menu issue isn't something we can do anything about, it's listed on the bugs page in the faq (it was under issues and i've just moved it to "things we can't fix")
http://processing.org/faq/bugs.html#cantfix

also please post bugs as separate threads...
Re: export CSS typo
Reply #4 - May 3rd, 2005, 9:50pm
 
I imagine the HTML is written from a set script that inserts values from the size() method when it gets to:
Code:

<applet code="filename" archive="filename.jar" width=(width) height=(height)>

So I imagine:
Code:

#content {
width: (width)px;
margin: auto;
}

Will solve the problem. Direct editing the HTML to that effect fixes it.
Re: export CSS typo
Reply #5 - May 3rd, 2005, 9:58pm
 
nah, cuz if your applet width is 100, you'll get text below that's 100 wide too. i'll look into it.
Re: export CSS typo
Reply #6 - May 7th, 2005, 7:30pm
 
casey's fixed this for 88. yeehaa.
Page Index Toggle Pages: 1