Jump to content

Labtec

Members
  • Posts

    117
  • Joined

  • Last visited

Everything posted by Labtec

  1. Have you managed to get it working yet? Regards, Lab
  2. Never seen that before dsonesuk, thanks very much. Do you have any good CSS sites I could learn CSS3 psuedo classes from? Kind regards, Lab.
  3. I don't understand your question. Lined up how? They are line up. How is the font going to line them up? Regards, Lab.
  4. If you take margin: -1px; out of this it should work: .hover_select:hover { border: 1px solid #C40000; margin: -1px;} Hope this helps. Kind regards, Lab.
  5. Labtec

    Container

    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.
  6. Labtec

    Selectors- why?

    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/
  7. 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.
  8. Labtec

    Selectors- why?

    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.
  9. Not sure you got a <html>, <head> and <body> WITHIN your <body> though. I daren't send it to the validator! http://validator.w3.org/ Start by validating it, then you know you have no errors so you have eliminated a possible suspect. Regards, L2c.
  10. Are the pages which are not working even created? Regards, Lab.
  11. Why are you positioning the logo and text 'Spanish' absolutely? I tend to float my elements and generally works great across all the browsers. Only use absolute positioning in when absolutely necessary! Kind regards, Lab.
  12. Labtec

    FONT

    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.
  13. 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 Kind regards,Lab.
  14. 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.
  15. 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. Hope this helps. Regards, Lab.
  16. 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.
  17. 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) . 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.
  18. Labtec

    FONT

    Font location relative to the file the url in. (CSS)
  19. 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.
  20. 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.
  21. You will need t use a server-side language such as PHP or ASP.NET to process the submitted data. PHP has a built in mail() function which you can use to send an email. Regards, Labby.
  22. Labtec

    FONT

    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
  23. Good evening, Put text-align: center on your #main-nav div like: #main-nav { height: 30px; padding-top: 3px; text-align: center; width: 100%;} Kind regards, Lab.
  24. 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.
  25. Labtec

    Button Positioning

    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...