Jump to content

Rufus

Members
  • Content Count

    25
  • Joined

  • Last visited

Everything posted by Rufus

  1. Just a little clarification on dsonesuk's fix, JavaScript messed up when it was created and they didn't acknowledge the guys working on CSS. So, we have the same style properties but they have different names.I always keep this as a reference. http://codepunk.hardwar.org.uk/css2js.htm
  2. Thanks for that clarification! Good stuff to know.
  3. Rufus

    CSS3 - Menu Help

    Some other things I caught:For your wrapper background, you had the -webkit-gradient going from "left top" to "left bottombottom" which is just a typo I believe. Same goes for your -webkit-gradient for ul.menu li a.Also, you have an extra period before ul.menu.On your -moz-linear-gradient you are missing the "to" part of the gradient. You just have "top" and then your color listings when it should be "top, bottom, color, color".Also, with your CSS transitions, I believe the specifications ask for the time in seconds and not milliseconds. What I like to do is just declare everything in one. -w
  4. Rufus

    CSS3 - Menu Help

    The first error I can see is that you're missing a closing brace for you .wrapper properties. And then you've also got an extra one right at the end.
  5. You can use text-align: center to center everything, not just text.I'm wondering what you mean by a display box? Some more description on that could be useful.
  6. Set the padding of the child ul's to 0px, since they do have a padding by default. #menu ul {padding: 0px;}
  7. On your style for div.sidebar, you mispelled "position". And, to get your header image to center, you can do it one of two ways.Center everything in the header: #header { text-align: center;} If you know the width of the image, set the div's width equal to that. The do an auto margin. #header { width: 500px; margin: 0px auto;}
  8. As an example, Wordpress likes to use this method. if (!empty($_SERVER['SCRIPT_FILENAME']) && 'filename.php' == basename($_SERVER['SCRIPT_FILENAME'])) { die ('Please do not load this page directly.');} You can just change the filename.php to the name of your included file. Then, when you include it, it won't die since the actual script that is executing is not the one you included.
  9. Rufus

    ul link style HELP!

    @Deirdre's Dad: setting the display to inline does remove the list style.However, to override it in other situations, li {list-style-type: none;} Rufus
  10. Rufus

    CSS List Menu

    The thing you want to use here is: display: inline-block Use that on your link tags. It will force the one that wraps to just go to the next line instead.Try this out: <!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><style type="text/css">.nav ul {padding:0;margin:0 auto;list-style-type:none;overflow:hidden;display:inline-block;}div.nav {padding: 5px;clear: both;background: #990033;border: 2px inset #ffffcc;font-family: Calibri, arial, sans-serif;
  11. Haha yeah you're right Synook. Thanks for that clarification on my wording; I think I'll use the word quirks more often.
  12. Rufus

    CSS Navigator

    @thescientist: I wouldn't use #nav ul, just give the ul itself the id. No need to wrap a block level element in a div or anything like that.
  13. I suppose what I meant by that is, when learning HTML and CSS, you don't want to worry about, "hmm does this element, selector, or property work in every browser?" I think that can be confusing as heck for someone who is a beginner. That is why the HTML tutorials on W3schools do a good job; they lay down the basics so that you can go off and discover how it can be done in modern browsers.
  14. Heya qcom,I wouldn't make the mistake of trying to learn HTML and browser standards at the same time; those are two large animals. I would go through both the HTML tutorial on this site and the CSS tutorial because they really go hand in hand. But, take it one step at a time.My best suggestion is to try things along the way. So, with each new thing you learn, take time write it out on your computer and test out what it looks like in the browser. And usually at the end of each chapter in the tutorial there are different things you can try to get a greater understanding of the topic.As for HTML5
  15. Also consider adding the media attribute to distinguish between things like print stylesheets and screen stylesheets. <link href="link/to/file.css" rel="stylesheet" type="text/css" media="screen" />
  16. Rufus

    Regex + C#

    Good website here. Even lets you test.http://www.gskinner.com/RegExr/
  17. Rufus

    Lan And Wan

    [*] Doesn't ask a question... (lol?)
  18. It is true in this case, but that statement is far to ambiguous given all of the rules for commas.
  19. Rufus

    Php Aplication Help.

    Heh you are most welcome migroo!Cheers
  20. Using the SimpleXML class built into PHP, you can create a new XML, so I am sure you can save over an existing one or edit one.Look at this.
  21. Rufus

    Php Aplication Help.

    Since you posted this in the PHP forum maybe the PHP way would be useful to you. This example uses the SimpleXMLElement class built into PHP. $xml = new SimpleXMLElement("person.xml", 0, true); The SimpleXMLElement __construct method accepts five parameters, and I have used three in this example (really you only need 1). The first is data which is the xml data. You can either enter the xml data in here or a path to the file. If you use a path, you need the second two parameters. The second parameter is any options you wish to pass so I put a 0 here for "no options". Then the third parameter
  22. Rufus

    Php Class

    You're right, the concept of classes is a big part of object-oriented programming. And you are also right, it is really a way to organize your functions (or methods if they are in a class). It also makes your code extremely reusable. For example, the code you have there is checking if a field in a form is empty. Now, that is something you do in a lot of applications, so why not put all of your validation functions in one file in a class named Validation. Then when you go to your next project, you just copy the file and you are ready to use your code.
  23. Dareus,Just one small suggestion: On your portfolio page, be careful with the links that point to the parts of the page. They are a dark blue on a black background which is really difficult to see clearly. That goes the same for the "return to top" links.Other than that, it looks like you have spent a lot of time on it!
  24. Rufus

    Localhost

    To run php on your computer, install a pre-packaged server. Check out "WAMP" if you run Windows, "MAMP" if you run a Mac os. If you are running linux, it is already on your operating system, you just need to install it.If you should install WAMP, navigate to the root folder and put your files in the folder "wamp/www/". With MAMP, place your files in the folder /Applications/MAMP/htdocs/. I haven't worked with linux, so I can't assist you there.To me there is not much use dealing with a php install and configuration, along with MySQL if you are into that (which all of the packages have).
  25. Hey Dave,Some suggestions to spice it up a bit and get it away from that "parked domain" ad site look.Think about using perhaps a gradient for the background from a darker shade of your current bg to the current one. This will make the rest of the site be more vivid.One thing that stands out to me is they way you are treating type. For instance, rather than using capitals to emphasize headers, use bold or simply a larger font size. Also, try to make the text more eloquent. One thing you can do for this is adding the line-height property on your content text. Set it to about 20px and notice how
×
×
  • Create New...