1. #11

    Re: Help with PHP

    Originally Posted by lu3mm3l
    Depends on your PHP editor. Some let you setup your local settings for your apache so if you press preview the browser opens directly localhost/yourfile.php. One of those would be "Phase 5" which should be available in english too. The easier way is enabling directory listing in apache and leave out the index.php. This way you see all files listed when browsing to localhost. And the last (more advanced) option would be integrated debugging. The better editors include a PHP debugger to find your errors in the source code. But those aren't free. At least not those I know.
    I guess I'll just rename the index.php to some weird name Hmm...maybe I'll try Phase 5, after I learn some more PHP, CSS, and HTML.

    Originally Posted by lu3mm3l
    AFAIK no. But I haven't used it in a long time so try it yourself, maybe they added something like that.
    I guess I'll just have to Google it

    Originally Posted by AnttiKi
    I still have nightmares about Photoshop layouts. They are horrible to build.
    And I always thought it was way easier using Photoshop then building websites with notepad!

    I got a question how do I make a box round some thing in CSS, not a border but a box.
    h1 {
    box-color: red;
    }
    Like that maybe...? You don't got to explain, links would work to.
    Share this post

  2. #12

    Re: Help with PHP

    To make a box,

    create new file called index.html and add this

    [code:2flrqtgk]<html>
    <head>
    <title>H u g h s i e</title>
    <link rel="stylesheet" href="style.css" type="text/css">
    </head>
    <body>
    <div id="container">
    </div>
    </body>
    </html>[/code:2flrqtgk]

    and then create a new file called style.css and put this in it

    [code:2flrqtgk]body {
    background-color: #9FD2FD;
    }
    #container {
    height: 120%;
    width: 80%;
    background-color: #696969;
    }[/code:2flrqtgk]

    Then try putting this in the style.css to make it look a bit nicer

    [code:2flrqtgk]body {
    background-color: #9FD2FD;
    }
    #container {
    height: 120%;
    width: 80%;
    background-color: #696969;
    margin-top: 50px;
    margin-bottom: 50px;
    margin-left: auto;
    margin-right: auto;
    opacity: .7;
    filter: alpha(opacity=7);
    }[/code:2flrqtgk]


    and try using http://www.w3schools.com/ to learn how to code.
    Share this post

  3. #13

    Re: Help with PHP

    Originally Posted by Hughsie
    To make a box,

    create new file called index.html and add this

    [code:3184msee]<html>
    <head>
    <title>H u g h s i e</title>
    <link rel="stylesheet" href="style.css" type="text/css">
    </head>
    <body>
    <div id="container">
    </div>
    </body>
    </html>[/code:3184msee]

    and then create a new file called style.css and put this in it

    [code:3184msee]body {
    background-color: #9FD2FD;
    }
    #container {
    height: 120%;
    width: 80%;
    background-color: #696969;
    }[/code:3184msee]

    Then try putting this in the style.css to make it look a bit nicer

    [code:3184msee]body {
    background-color: #9FD2FD;
    }
    #container {
    height: 120%;
    width: 80%;
    background-color: #696969;
    margin-top: 50px;
    margin-bottom: 50px;
    margin-left: auto;
    margin-right: auto;
    opacity: .7;
    filter: alpha(opacity=7);
    }[/code:3184msee]


    and try using http://www.w3schools.com/ to learn how to code.
    Thanks dude, but can't that be done just like this:
    [code:3184msee]
    h1 {
    background-color: red;
    }
    [/code:3184msee]
    I was waiting for a reply on the forum, then asked Harmless in t2se chat. Figured it out, but I see you did all the work for me, thanks. I'm using this to learn CSS: http://www.w3schools.com/css/css_reference.asp. An d also how can I make the corners of the box around without using a image?
    Share this post

  4. #14

    Re: Help with PHP

    I don't think you can (or at least easily) make the corners round without using images sorry. But I'm 99% sure you can make the edges round by using A LOT of CSS, they way I think you could do it is make a line, then another line one pixel lower and one pixel wider.... on and on but image would be easier.

    Other than w3school google is amazing and http://www.somacon.com/p142.php for colours.
    Also make sure you learn HTML the correct way by validating your HTML a lot and use FireFox when coding (crap code looks great in Internet Explorer but good code looks **** in it).
    Share this post

  5. #15

    Re: Help with PHP

    You can do rounded corners in CSS3 (which is still in development) but the chances of that being supported by IE is likely as HarmLess getting into the Top 10. Oh yes, I went there.

    However the rounded borders only works with Safari or Firefox right now.

    border.html
    [code:2xl9gc2a]<html>
    <head>
    <title>Rounded border</title>

    <link rel="stylesheet" type="text/css" href="border.css"
    </head>

    <body>
    <div id="rounded">This is a rounded border.</div>
    </body>
    </html>[/code:2xl9gc2a]

    border.css
    [code:2xl9gc2a]#rounded{
    background:#ccc;
    -moz-border-radius:5px;
    -webkit-border-radius:5px;
    border:1px solid #000;
    padding:10px;
    }[/code:2xl9gc2a]
    From CCS3.info

    As you see it can be done, the -webkit- and -moz- are CSS properties for Safari and Firefox respectively, eventually it'll just end up as border-radius and all browsers (except IE, probably) will support it.
    Share this post