Jump to content

Labtec

Members
  • Posts

    117
  • Joined

  • Last visited

Everything posted by Labtec

  1. Judging by what you have said you could do this: <?php?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title>HTML Template</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <script type="text/javascript" src="jquery-1.8.3.js"></script><style type="text/css">td{ border: 1px solid black;}.center{ text-align: center;}.right{ text-align: right;}</style></head><body><table width="380px"><tr><td>About Us</td><td class="center">Members Only</td><td class="right">Events & Education</td></tr></table></body></html> Does this help? If not let me know! Regards, Lab.
  2. You could use PHP which is a serverside language. Validate/Process the form data and then once you are happy, use the PHP mail() function to send the email, inserting the variables where needed. Regards, Lab.
  3. To be honest, I check IE. 8/9/10, FF, Chrome, Opera and Safari. I have noticed over the past couple of years when designing my own sites that compatibility is more of an issue in Safari or Opera. They seem to be the biggest pains for me and of course different versions of IE. I use windows 8 so I've only recently been able to get IE9 and above due to XP not allowing you to install any version of IE above 8. I noticed in the Developer tools that you can check versions 5,7,8,9,10 of IE so that is a real handy tool to use, same goes for FF with firebug. When actually developing the site though, I mainly just check FF and IE 7-10 and if all looks good, I carry on. It's only just before it goes live that I will check each and every browser to make sure everything is in place. Thankfully my latest design was spot on in ALL browsers, which is a first.. If you want any advice though, it wouldn't hurt to check all the browsers every so often just to make sure things are ok because you don't want to write a whole page of content, then check browsers and notice things are really messed up! IMO it's best to just check them once in a while. Thinking about it also, mobile web functionality is become a very big trend so I'd even start looking into creating a mobile version of your site, if you can't get it to work properly using your main style. Hope this helps you. Kind regards, Lab.
  4. Hi take a look at this code, not the best codewise but it works! <div id="container"> <h2 id="recruit_heading">NEW RECRUITS</h2><hr id="first_hr" noshade="noshade" /> <hr class="hidden" /> <div class="multiple_divs"></div> <div class="multiple_divs"></div> <div class="multiple_divs"></div> <div class="multiple_divs"></div> <div class="multiple_divs"></div> <div class="multiple_divs"></div> <div class="multiple_divs"></div> <div class="multiple_divs"></div> <div class="multiple_divs"></div> <div class="multiple_divs"></div> <div class="multiple_divs"></div> <div class="multiple_divs"></div> <div class="multiple_divs"></div> <div class="multiple_divs"></div> <div class="multiple_divs"></div> <hr id="second_hr" noshade="noshade" /> <h2 id="players_heading">VIEW ALL PLAYERS</h2> <hr class="hidden" /></div> CSS: h2{ color: #c0c0c0;}#container{ background-color: #545353; border: 1px solid #000; width: 58%; padding: 1%;}#recruit_heading{ margin: 0px 20px 0px 0px; float: left;}#first_hr{ color: yellow; background: yellow; border: 1px solid yellow;}.multiple_divs{ border: 1px solid #c0c0c0; width: 17.5%; margin: 1%; float: left; height: 100px;}#second_hr{ color: yellow; background: yellow; border: 1px solid yellow; clear: left; float: left; width: 60%;}#players_heading{ margin: 1%; float: right;}.hidden{ visibility: hidden; clear: both;} Hope it helps, Regards, Lab
  5. Labtec

    Header issue

    Can you post a link to the site or can you post some HTML and CSS. It's hard to suggest what the issue could be without seeing some code or a live version. Regards, Lab.
  6. Labtec

    HTML Editor:

    Go with Notepad++. I've tried out so many and I found that Notepad++ is best suitable for myself. It depends, some people like Dreamweaver but when I first used it about 1 month ago, I was tearing my hair out,so it will never be used again. I just use Notepad at college because it won't let you install any programs. I prefer a simple editor which has useful features such as syntax highlighting. I don't want any 'design view' or autocompletion/suggestions of HTML tags etc. I think that gets you into bad habits. Best to learn HTML from manually coding, to be honest, 50% of the tags you will probably never use, you will find yourself using the same tags repeatedly. I'd say he most common HTML tags are <div>,<h1-6> and <p>. Of course, give yourself broader knowledge by studying as many tags as possible. Although it's frowned upon, I'd even suggest learning about tables as you may find yourself wanting to present PHP/MySQL database information inside a table at some point. Best to just completely write the code yourself, that way you will know exactly what your file contains. I found that dreamweaver adds inline styles to your elements, which is very outdated as all styling should be done in an external stylesheet (imo). I hope this gives you a little more insight! Kind regards, Labby
  7. Hi, just took a look at your site. You need to add a margin-bottom: 0px to your ul#nav id When I did that, it closed the gap between your navigation and your main content div. Hope this helps you. Kind regards, Labby.
  8. Indeed I will do it myself, I have never used a wysiwyg editor and I never will from what I have heard. Everyone I have spoke to has said to write the code yourself so you know exactly what is happening and what code is actually within your files. I'm one for progressing my knowledge in web design and using a wysiwyg would not allow me to do that. Taking into account what you have said about the different 'modes' in DW though, the 'code' view is definitely something which appeals to me. I'm jut not entirely sure at this moment in time if it really worth the money to just use it as a text editor. I will have a re-think. Thanks... Laboratory Technician.
  9. Hi can I just jump on this thread and ask the question? Is Dreamweaver a good tool to have? I know it does a lot of things automatically for the user, but is that really good practice? Never used Dreamweaver and have always wondered what the hype is about. It doesn't look to be my sort of thing, I prefer simply notepad++. Let me know your thoughts please, I am looking into getting an adobe package.... Laboratory Technician
  10. I would just like to add a link which will stand you in good stead for the future. Take a look at: http://net.tutsplus.com/tutorials/html-css-techniques/30-html-best-practices-for-beginners/ Hope you like the link. Laboratory Technician
  11. Rather than creating inline styles, add this to your css: #form_name input[type="button"] {background-color: #ff0000;color: #ff0000;} This should target only the inputs which have a type of "button". Regards, Laboratory Technician
  12. The pupose is to allow these users to download and watch the gaming files. I'm going to look into converting into a mass format like mp3 or wma because if it stays as demorec.dem, you can only watch the demos if you have them certain games. That's another question for another day though. My main priority is to design the database, I just need to know what is the best way to target a gaming file for the correct game? I was thinking to allow the drop-down selection box but I don't want to have to rely on the users to make sure they get inserted correctly because they could end up just uploading COD4 demos, but selecting the CS:S value for example, which will then mess up the selection. Regards, Laboratory Technician
  13. You can target them like: #maincontent > img {type your code here} This will target all images within the #maincontent div. If you want to target 4 other images except 1, then give them a class of say <img class='rollover' .....> and target them 4 images using the class. Failing that, you could put the 1 image you want to stay normal transparency into it's own container, again you could use the code at the top, because this will only target the img tags which are DIRECT CHILDREN of your #maincontent div. It's hard to say what to do without seeing some sort of code, as your post was not informative enough. Anyway, I hope this helps you. Regards, Laboratory Technician
  14. Hi, I am designing a site to allow the uploading of demo files. I am targeting specific games such as MW4, COD4, CS:S and CS:GO to name a few. What I am going to do is display the game icons to the user. When they click that icon, I need to be able to select all of the demo files relating to that game for instance. What I came here to ask is should I create new tables for each game, named mw4, cod4, css, csgo etc etc or should I put all of the file, date, user, information into one table (when the user uploads a file). Any thought will be very much appreciated. Laboratory Technician.
  15. I believe creating a global variable in one script makes it accessible to any script in your directory... $var = 1; function your_function(){ global $var; //now you can use this variable within your function.} Regards, Labtec.
  16. Your form needs an action attribute of a specified file which will deal with the submitted data. <form action="some_file.php" method="POST"> <fieldset> <legend>Comment Form</legend> <p><label for="name">Name:</label><input type="text" id="name" name="name" /></p> <p><label for="email">Email:</label><input type="text" id="email" name="email" /></p> <p><label for="comment">Comment:</label><textarea name="comment" rows="5" cols="30"></textarea></p> <p><input type="submit" name="submit" value="Send Comment" /><input type="reset" name="reset" value="Clear" /></p> </fieldset></form> PHP script: $name = $_POST['name'];$email = $_POST['email'];$comment = $_POST['comment']; etc. There is more validation to be done before sending the email. Give niche's link a read. Regards, Labtec.
×
×
  • Create New...