Jump to content

Labtec

Members
  • Posts

    117
  • Joined

  • Last visited

Posts posted by Labtec

  1. Thanks dsonesuk, I usually float element and have issues with setting heights of some elements. I didn't know that using overflow hidden meant it could detect the height. Thanks a lot. Kind regards, Lab.

  2. Why can you not just do <div> <something> </something> </div> if you want something inside div to be different?
    That's the whole point, there could be 6 <div>s on the page but if you wanted to just style one different from the rest, you need to be more specific with your selector. By giving it an id or class, it allows you to be more specific when styling the element because you target just that one div with that certain id or class. Kind regards, Lab/
  3. I'd need to see some PHP code to be able to help. It looks like your website is sending a header and refreshing to the same 'downloads' page. Maybe an 'else' clause in your code keeps executing? Most likely will be a path issue I reckon, but of course that is only a pure guess. Regards, Lab.

  4. When using a dot it means that certain element has been given a class. Let's say we have a <div> with a class of myDiv:

    <div class='myDiv'> </div>

    If we just call it by element name (div), then any styles we declare will affect ALL <div> tags on the page. We give things ID's or classes to be able to identify certain elements and give them certain style rules, without those styles affecting every element. Does this help? Regards, Lab.

  5. See my first post. Go to that site and upload your font, it will then produce download button which is a .zip file and it contains the CSS in there. Regards, Lab.

  6. I hear varied opinions on this but my own opinion is that I think you should learn to write the code instead of using programs which generate the HTML for you. Dreamweaver is a prime example of this, I absolutely hate it whereas others who have been asked think it's one of the best programs to use. I class it as cheating but thats just me :crazy: Kind regards,Lab.

  7. Are you viewing this on html5 doctype? because I only have two left now, and the "& character reference" Line 17, Column 117, where am i supposed to find that? I dont understand what the lines and columns mean? thank you for your help so far! :)
    Sorry I didn't see your second link. Lines and columns are exactly that. What editor are you using to code in? Do you see the numbered lines usually down the left hand side? Regard, Lab.
  8. You got 4 errors and 2 warnings. The second error in the list, is regarding the ampersand in red. It is saying you need to escape it, meaning you need to put this:

    &

    So that line of code should read:

    One:400&subset

    Ok there's one error down. Your last error is simple. To create a 'break rule' tag, you need to open and close it within the same tag. So change those 2 <br></br> tags to this:

    <br /><br />

    2 down 2 to go. The 3rd one in the list, regarding the start tag, I think that means you haven't closed the <a> tag which comes BEFORE that <a> tag. And the 1st error regarding the profile attribute, I'm not too sure. :umnik2: Hope this helps. Regards, Lab.

  9. This is the basic syntax for a link:

    <a href="somePage.html">Contact Us</a>

    And on line 17, encode your ampersand '&':

    #8230;/css?family=PT+Sans:400|Fjalla+One:400&subset=latin' type='text/css' media='al…

    To this:

    #8230;/css?family=PT+Sans:400|Fjalla+One:400&subset=latin' type='text/css' media='al…

    Regards, Lab.

  10. I work with a dude who started out on just HTML and PHP, so I'd usually say get a good grounding on HTML first, then start looking at PHP tutorials. When I say tutorials I mean for the absolute beginner. PHP totally different to HTML in the syntax and the way you use it. I waited over 2 years before learning any PHP and I wish I had started right from the off because it's a great language to use. The possibilities are endless (nearly) :happy0046: . It may only take a few days to get a good understanding on basic HTML depending on the hours you put in then go st.raight ahead with PHP. You may want to look at CSS (Cascading StyleSheets) also as this is the language we use to style our pages. Depends what you want to do first, design a nice looking site with basic functionality or a basic looking site with dynamic functionality. Of course, CSS basics are relatively easy to understand so you could learn this with HTML. I can link you to some pretty good sites regarding HTML and CSS so if you'd like to see them let me know. Any help or advice on how to get setup though and I'll be more than happy to explain. Kind regards, Lab.

  11. What you need to do is take your sidebar div OUT of your main div. Float your sidebar left. It depends though I think this could give you some unexpected results after seeing the picture you have provided. Depends on exactly what you want. Can you provide some HTML and CSS or a live link for us to look at please? For a start though, take your sidebar div out of your main div and float it left. Kind regards, Lab.

  12. Hi Jim give this code a go. I've not tested it yet though.

    input.services {//your code here}

    If that doesn't work I think it sounds like you have some other styles declared which would overwrite the style but I'm not sure. Can you post all of your relative HTML and CSS? Regards, Lab.

  13. I'd sugest also try converting your fonts to as many different types as possible to ensure you get a good majority of the main browsers to render the font. Check out http://www.fontsquirrel.com/tools/webfont-generator Hope that site helps. Create a new directory in your site structure let's say 'fonts', just like you would have a 'css' or 'images' directory. Put your font files in there. Give them a name so you can reference them, call it anything you want. Next, just reference that certain font in your CSS file and it should work. Check out the font generator though as it gives you the converted font types of that certain font and also the CSS to go with it!. Kind regards, Labby

  14. How do you mean it's not working? Try checking what the return value of file_get_contents() and file_put_contents() are:

    if (!file_get_contents("posts.txt")){	echo "error with file_get_contents()";} if(!file_put_contents("posts.txt", $posts)){	echo "error with file_put_contents()";}

    You may need to re-read the file with file_get_contents(); to get the updated version of the file. Try this:

    <?php	    $msg = $_POST["msg"];	    $name = $_POST["name"];	    $posts = file_get_contents("posts.txt");	    $posts = "$msg - $name\n" . $posts;	    file_put_contents("posts.txt", $posts);	            $posts = file_get_contents("posts.txt");        echo $posts;?>

    Regard, Lab.

  15. Do they need to be that big? and do they need that margin? If not, just take all styles to do with margin and sizes out of your css file and start again. Exactly how do you want your buttons displayed? Up to now you've just said that they are messed up in resolutions. I'm not sure on what you want so I can't go ahead and create something for you. I viewed your site in 1650x1050 resolution which is larger than average and it still creates a vertical scroll bar. Regards, Lab

×
×
  • Create New...