Jump to content

sarahfoxnz

Members
  • Content Count

    8
  • Joined

  • Last visited

Community Reputation

0 Neutral

About sarahfoxnz

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. sarahfoxnz

    W3css Carosel - Include a php script ?

    yes - My host apparently stops scheduling at various times & dont notice anything until someone mentions it. Late last night I fixed it, with this code (not css - sorry). (code is wonky on this screen) <script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script> <script type="text/javascript"> var myVar = setInterval(myFunction2, 35000); function myFunction2() { $( "#myID" ).load( "/content.php", function() {}); } script.onerror = function() { alert("cannot load script"); } </script>
  2. <div class="mySlides w3-container"><a href="/todo#feedback" class="w3-bar-item w3-button w3-mobile">Feedback</a></div> <div class="mySlides w3-container"><a href="/todo#feedback" class="w3-bar-item w3-button w3-mobile">Contact us</a></div> Hello - Stupid question - How do i remove all formatting on this forum ? the above is copied from my html code & it looks weird - i cant remove the blank space / gap. (it also appears that this box where im typing is 50% of the available size, it word-wraps much sooner than i want. When i type, i like plain text with no formatting of any description. MAIN QUESTION:- https://www.w3schools.com/w3css/w3css_slideshow.asp I'm using the carousel() function. I have successfully used the carousel in another website Ive done (just simply swap between two phrases / words). However this time, I want to activate / run a PHP script. I do not need the PHP results to be displayed on screen - I just need it to run every few minutes or so. Ive researched ajax, php, javascript etc & copied the code from my other script. my text in the div does rotate, however i just cant get the php script to activate. ive used content.php /content.php and even http://mysite.com/content.php The bad thing too, is theres no error / result / error messages of any kind. i dont even know if its checking the correct path to find my script (maybe its checking a different / incorrect path. has anyone got assistance to activate a php script every xx seconds ? (once i get it going, i can change things). All the php script does is display/echo the time() value, & also save the time to a file. I'll remove the echo part once i get it going, as i dont need anything displayed on screen. I'll change the php script once its working
  3. sarahfoxnz

    W3 CSS & centering a table

    FURTHER: Examining the css file, w3-half and the other sizes, are all FLOAT LEFTS. So even if you want it centered, it wont center. I guess i'll have to create my own extra CSS. FIXED. I've added 2 new css classes - By-passing the float lefts. Would this be useful to add to the "master" file ? (i'm sure you can add various sizes - quarter /third etc...) .w3-table-center{margin-left:auto;margin-right:auto} .w3-table-half{width:49.99999%}
  4. sarahfoxnz

    W3 CSS & centering a table

    Ive checked & downloaded a fresh copy of the latest CSS (my one did not have w3-auto. ) Ive now got w3-auto, and use this (removing my excess divs) <table class="w3-table-all w3-border w3-half w3-auto"> However its left-aligned. The auto option does not work on tables.
  5. sarahfoxnz

    W3 CSS & centering a table

    There MUST be an easier way than this - But ive figured it out. Why have so much HTML code to do such a simple task ? Ive got 4 additional divs just to "center" a table within an EXISTING div. Why ? (ALSO: you need to do the w3-quarter / w3-half BEFORE the w3-content. i tried putting them after ( w3-content w3-half ) , but it didnt work. <div class="w3-row"> <div class=" w3-quarter w3-container"></div> <div class="w3-half w3-container"> <table class="w3-table-all"> (Table rows / content) </table> </div> <div class="w3-quarter w3-container"></div> </div>
  6. sarahfoxnz

    W3 CSS & centering a table

    Hello. Is there an EASY way to have a w3css table that is centered & a variable width. IE not taking up 100% of the available div width. Ive currently got this code - it is a small width - but it still floats to the left of the screen. <div class="w3-row"> <div class="w3-half w3-container" style="margin-left:auto; margin-right:auto;"> <table class="w3-table-all" style="margin-left:auto; margin-right:auto;"> Ive tried with or without (rows, w3-centered, w3-center) - & nothing works, ive added (& not added) the css styles as well. This website does not contain any information about reducing the horizontal width or the ability to center a table. (all the examples shown, display a table at 100% of the available width). Does anyone here have the ability to add a few more examples to the site: https://www.w3schools.com/w3css/w3css_tables.asp
  7. sarahfoxnz

    HTML tables and forms - W3CSS

    Is there a way to LOOK like a table without being a table ? to have column/row information, but have it as a FORM - & allow a user to submit data. EDIT: tables - https://www.w3schools.com/w3css/w3css_tables.asp
  8. sarahfoxnz

    HTML tables and forms - W3CSS

    Hello. Is this the right place to Discuss W3CSS ? Or is that a separate forum ? I am not sure if this is a question, or suggestion - or both. https://www.w3schools.com/w3css/w3css_input.asp I have reviewed the INPUT and the TABLE information in the W3CSS pages, and can not locate the information I am after. I am wondering about the correct technique of using tables and forms in ONE. Ive two scenarios in mind. ONE: You display a table and EACH row contains its own FORM. it contains, text, an input field, and in the 3rd column, its own submit button. each form sends minimal data to get processed. TWO: you have an HTML form, and a table. There is ONE Form, with ONE submit button, but it has multiple table rows, containing text, input fields etc.. Is there an existing tutorial on this ? If not, can one be added to the W3CSS website (and a hyper link to/from the INPUT and TABLE pages).
×