Web Programming

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Message
Author
User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Re: HTML Tables

#91 Post by L18L »

Moose On The Loose wrote:
L18L wrote:
Moose On The Loose wrote:I tried and tried to get the positioning to work with CSS in the attached and finally just gave up and went back to using tables.
Try tableless version please
That looks like one of my many failed attempts. Notice:

1) The buttons over to the right of the game are shoved way over to the right

2) The "game number" and circles are way below the bottom edge of the game.

3) If you shrink your browser window, the controls to the right suddenly pop to below the game area.
OK, that was just a quick and dirty demo of not using table for layout.

Here is the slow and proper solution.

Hope this helps you "being within the standard "
Attachments
tangle_tableless.png
controls staying at right side.
(31.93 KiB) Downloaded 248 times
tangle2.html.gz
unzip it
(8.11 KiB) Downloaded 238 times

User avatar
Moose On The Loose
Posts: 965
Joined: Thu 24 Feb 2011, 14:54

Re: HTML Tables

#92 Post by Moose On The Loose »

L18L wrote:
Moose On The Loose wrote:
L18L wrote: Try tableless version please
That looks like one of my many failed attempts. Notice:

1) The buttons over to the right of the game are shoved way over to the right

2) The "game number" and circles are way below the bottom edge of the game.

3) If you shrink your browser window, the controls to the right suddenly pop to below the game area.
OK, that was just a quick and dirty demo of not using table for layout.

Here is the slow and proper solution.

Hope this helps you "being within the standard "
1) The boxes around the buttons one the right are now really big instead of fitting nicely

2) Still the same

3) Fixed

Other than that, it seems better than any of my tries

User avatar
Moose On The Loose
Posts: 965
Joined: Thu 24 Feb 2011, 14:54

Re: HTML Tables

#93 Post by Moose On The Loose »

Extra post caused by firefox crashing just as I posted.
Hopefully nothing to do with tangle2.html

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#94 Post by technosaurus »

I've been working on some stuff to allow sharing of C and javascript code, and it turns javascript does have a lot of the same functions, but is missing some useful ones.

here is a basic printf (other *printf functions should be similar)

Code: Select all

function printf(fmt){
  var strings = fmt.split(/[%].?/), string=strings[0];
  for(let i=1; i<strings.length; i++)
    string+=arguments[i]+strings[i];
  console.log(string);
  return string.length
}
Let me know if there are any C functions you miss ... I may make some more wrappers (qsort and the string functions are already on the list)
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

Post Reply