Jump to content

Jack McKalling

Members
  • Posts

    1,606
  • Joined

  • Last visited

Posts posted by Jack McKalling

  1. Have you tried text-align:center; already? Apply it to whatever div.footer is in, and div.footer will be centered. It should center it towards the full width, so whatever resolution the page is at, it should be the middle. Does it work?Oh and by the way, welcome to the forums :)

  2. Okay, but as I don't know exactly what xml is or how you create a file with it, I don't exactly understand. But nevermind, I asked a friend too, hoped to get it clear this time at W3Schools, but I think I should learn the Xml tutorial to get it straight for me :)

  3. If you host it at a webserver, execute this php instruction in an empty file:

    echo ini_get('register_globals');

    And check if the output says either 0 (off) or 1 (on). It should be 1.

  4. This is very easy to solve :) You should apply the target name you defined at the anchor, to the frame element you want it in :)

    <frameset rows="21%,79%"><frame noresize="noresize" src="top.htm"><frameset cols="14%,86%"><frame noresize="noresize" src="sidebar.htm"><frame noresize="noresize" src="home.htm" name="showframe"></frameset></frameset>
    The blue addition defines that frame to be the target of each link that refers to "showframe" it its target.(the red you forgot to write :))-Note: You did specify a target to load that document in, but there was no frame with that name. So it thinks you mean a new window.
  5. An image has for default no border. Only when it gets embedded in an anchor (<a>), then it gets a border. It can be shut down by the border="0" attribute for the image, but you can't controll the colour without styles. There is no such thing as bordercolor for either an anchor or an image. :)You should use this then:

    <a ... style="border:solid 2px purple">...</a>
    Where the coloured code should be replaced with the colour you want of cource. It can be again a hexvalue, an rgbvalue or just a colourname.
  6. Can anyone easy and simple explain me what exactly an RSS reader is? When I don't know even what "RSS" is :)?I never did any AJAX, neither Xml, so I can't do anything that deals with that languages. XSLT is something I have never seen anything about too. I can do only markup languages (if "xml" isn't markup language), css and sql, and script languages. Which is all I need for a basic site, I don't know anything about other forms of site like when build by XML. What are the pros of xml over html, and does it compete with the difficulty (easyness) of html?-Oh, and I also know a bit of Dhtml, but that's not W3C standard so I never mention it. It consists of what I did mention already anyway.

  7. <?php$txt="\r\nsomething";$txt2="\r\nSomething";echo $txt, $txt, $txt, $txt2, $txt2;($d=date("D");if ($d=="Mon") echo "\r\nTime to work!"; elseif ($d=="Sun") echo "\r\nResting Day!";else echo "\r\nHave a nice day!"; ?><form action="welcome.php" method="post">Name: <input type="text" name="name" />Age: <input type="text" name="age" /><input type="submit" /></form>
    Here you are :)Notice the change to echo $txt, $txt, $txt, $txt2, $txt2;, you don't have to repeat the echo instrunctiion every string. Besides, you can include them all in one string, so you can format the betweens :) Like this:
    echo "$txt and even more $txt. One more $txt, and then one $txt2. And even one more $txt2.";
    I hope you understand :)
  8. Whaha, this is even another issue I can respond with "turn over to server-side and use tables instead of frames" lol. With a server-side language you would be able to compensate the use of frames. With frames you are able to load documents inside other documents, but with server-side languages you don't have to load, you just write them in. So then tables can be used and even still several documents in one another. :)But I'll be nice :)http://www.w3schools.com/tags/tag_iframe.asp^^ All attributes of the iframe, and some stylish things aswel.You can also add just CSS to the iframe, everything is listed here:http://www.w3schools.com/css/css_reference.asp

  9. You can find all in the CSS tutorial. But in short, this is the full border style:

    <table ... style="border:solid 1px black">

    http://www.w3schools.com/css/css_reference.asp#borderAnd this can be changed to whatever type you want, like solid, dotted, dashed, double, inset, outset,.. :)Also the width of the border may be everything you want. You're even not sticked to pixels, but I recommend though. The color you define like this represents all four sides, and you are again allowed to either use a hexvalue (eg #000000), an RGB value (eg rgb(0,0,0)), or a colorname (eg black). Hexvalues are recommended.And to go one step beyond this, all this style can be set in a central stylesheet, so if you have several of the same tables that should also get the same style, you would only need to alter the central style, and all tables with that class will get the changes. Stylesheets are strongly recommended by W3C, that is part of why XHTML was made.

  10. Has this been solved for you now?Remember to always put PHP tags inside the included files, even they get included inside a php script. And the url of the included file must be compared to the folder the including file is in, or else no file will be included (I don't understand that part myself though). :)

  11. It might, just might, be that fact that you are using $HTTP_GET_VARS.Above version whatever, PHP introduces $_GET as the alternative, so $HTTP_GET_VARS has become obsolete at that point. But I don't know what version you use as PHP installation at your server, and I don't fully understand your code, so I may be wrong and the replacement of those variables can turn out to no changement. You should try it, give it a whirl :) $HTTP_GET_VARS is rarely used these days.You say it is the information that is taken from the url, with which you mean this variable, so I am practically sure it is true what I say, be can't be 100% though.

  12. Exactly!And when they do see it, then they might call in friends theirselves, and they might on their turn, and so on.Come on, just a subforum, a subcategory of General, or another forum of category "W3Schools", and it can or just may be deleted when this is all behind. Not that I want it to be behind, nor that forum be deleted, but it can if you must.The W3Schools Project is part (or going to be) of W3Schools and thus a forum won't be such a big deal. Kaijim should consider this I think :)

  13. Then I prefer to vote for a separate subforum or whatever at this board.This project is going to be part of W3Schools, why would this thing be denied? If the project is done, they can delete the extra subforum anyway. The project is going to be part of us any way, and the main idea was for develop reasons. This board was also set up for develop reasons, so I don't see why the admin would not want to add a subforum for even only this project. Could it be?

  14. Why do you want to even use deprecated attributes? Why don't you want styles, where styles have much more convenience and so on?You can use this attribute for the table element: bordercolor="black", but a stylesheet or even a style attribute can be much better in all cases. Why won't you use that? :)*gives the deprecated style with resistance* You should use styles anyway, actually, everyone does, I don't understand :)

×
×
  • Create New...