Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Ade

Members
  • Joined

  • Last visited

Everything posted by Ade

  1. That is correct for those who understand PHP and MySQL, like you do. Others, such as me, would not be able to do it so easily. Just wanted to point that out.
  2. Depends how much PHP you know, I suppose. I wouldn't! Are you reluctant to use a CMS?
  3. I would use a CMS for that, I think. Try MODx.
  4. What Pedro wrote in post #5. By the way: FAQs with an apostrophe?
  5. It filled the full width of the screen for me during my testing because, as you found before your second edit you have to be careful with resets. Use Eric Meyer's (mentioned earlier): link to follow in a mo'. Found it: Click That will set you off on the right foot from the beginning.
  6. I downloaded your site, as it was a few minutes ago. I hope you don't mind. Here's how your header and nav divs can be arranged, with the navigation sitting below the header: <div id="header"> <h1>Header</h1> </div> <div id="nav"> <ul> <li class="current"><a href="http://limee.co.uk/">Home</a></li> <li><a href="#">About Us</a></li> <li><a href="#">Mail</a></li> </ul> </div> This is easier to manage and more stable. If you want the nav inside the header for a particular reason, that can be done. Now your CSS: #header { background:#0a0a0a url('headerbg.png'); position: relative; width:100%; height:140px; /* or whatever you want */ } #nav { background:#ffffff url('navbg.png'); position: relative; width: 100%; height:48px; font:bold 0.82em Arial, Helvetica, sans-serif; color:#0a0a0a; border-bottom:1px solid #cccccc; } #nav ul { height:28px; } #nav li { display: block; float: left; } #nav ul a { display:block; margin:0 25px; padding:16px 40px; color:#0a0a0a; text-decoration:none; } Important points: I was testing this with Eric Meyer's reset, which I always use, and I removed the unnecessary conditional formatting for IE. If you arrange the header and nav like this, you would have to be doing something weird elsewhere for it to go wrong. Be very careful if you intend to use conditional style decs. And finally, remember that there is always the possibility that you may use some code or stylesheet that I didn't download.
  7. It doesn't need to be positioned absolutely. Not if you get the rest of your mark up right. BTW: Your HTML has a closing </head> tag where it should be </html>.
  8. I just looked at your CSS again and you still have absolute positioning in there: you mentioned that you had uploaded my suggested change, but it looks like you hadn't. I think that might explain why you saw no change. Unless you have since re-uploaded the previous version, of course.
  9. Not when I edited it! I tested it before posting.
  10. The gap is easy to fix. Change your header declarations to: #header { background-image:url('headerbg.png'); background-color:#0a0a0a; width:100%; height:140px; } Also, don't use min-width or min-height with width and/or height on the same element if the values are the same type. Click here. Just have width and/or height or min-width and/or min-height, or width and min-height..... You get the idea.
  11. No need..... It has just come through, finally! And it's formatted exactly as I wanted. Thanks again, Andy. Much appreciated.
  12. Thanks very much, Andy. I've made those changes, but I'm not getting the test message through. Normally very quick off this server, and I've waited a while now. Any ideas? Or just bad timing? I took the name attribute off the submit button, but the ID is needed.
  13. Right, as promised, I binned the previous 3rd party script and started working with one from jemjabella.co.uk, found via this fine forum. And this one is much easier to tweak to my needs. With a bit of research and some guesswork and hunches, it works almost perfectly and I have got it down to just two (ish) issues that I can't resolve. I have attached an example version of the PHP file with my changes. Currently, the form data is returned to the form even if the submission is successful, which I think is potentially confusing for visitors and it looks a bit messy. How do I tweak it to only get the data back into the form fields after an error, not after after a successful submission? If this isn't possible, the second option is to redirect to my "form success" page, but how do I create that behaviour in this script? I would like to exclude the names of empty fields from the e-mails that I receive from this form and omit the value of the submit button altogether, which is currently being included as Send:Send. Is this doable? Thanks.
  14. Haha. I wouldn't call them extensive until I can figure out PHP! Thanks for the welcome.
  15. Oh, I agree that accessibility is vitally important - I tell that to my clients often enough and always try to practice what I preach. To me, usability and accessibility are tied together. But none of the techniques that I would ever use can adversely affect accessibility because they either degrade gracefully or don't get in the way at all. I let a blind friend who uses JAWS test out my sites. Anyway, Cats Corp: you have a few options, as I outlined earlier. You could live without the CSS 2.1 validation in this instance, knowing that the "rogue" dec still functions in the browser at which you're aiming it. It won't, as far as I'm aware, screw up anything else, but check it anyway. You could put in a conditional stylesheet and not worry about validating that file. Or you could let your visitors live with the scrollbar. That might be the best option.
  16. As I haven't had any further input and I haven't been able to get any further with this script, I have decided to know when I'm beaten and I've downloaded a simpler script that was posted elsewhere on this forum. It's quite similar to, but better than, a script that I used to use, so I'm reasonably familiar with some of its functions. I have a few questions about it but I'll kick off a new thread for those. Thanks again to all who read my post and responded.
  17. Thanks for the warm welcome everyone.
  18. That's a bit of a black and white view, Gareth, if you don't me saying so. For instance, would you refuse to use any of the well established techniques that are not, in themselves, strictly valid? Perhaps you would, but I would find that limiting. I rate usability above anything else, so there may occasionally be times when I will do what I need to do to make things work nicely for the end user. Hence my earlier caveat about "if it's necessary", and that's a case-by-case thing. That said (or written), in this instance, Cats should decide whether any solution is worth using simply to avoid a display characteristic. After all, I think that most IE users will either accept its display of both scroll bars or not even notice.
  19. If I were you, I would go ahead and use it if it's necessary. I love things to validate, too, but that doesn't matter to your site's visitors as long as it ultimately works as well as possible. Test it thoroughly. You could use a conditional stylesheet, of course, though whether that is worth it for one dec is debatable.
  20. Thanks for the input, Charles. Appreciated. Re: the bad code - do you think I should start afresh with another script? I wouldn't mind doing that if I could find a really suitable one. I have not been 100% confident in this script's suitability since I started working with it, but it was about the most usable that I could find. Others seem to be either too basic in their validation or too complex to set up, or they require their own forms that are filled with PHP includes [is that right?] and I can't work with them, at least not at this time. I agree about inserting data back into the form - I would like to do that if possible, but I can't take that on just yet. Re: spaces - no, it doesn't matter where they are; that was just me assuming that the validation would require me to specify it, judging by what I have seen so far in scripts like this. I don't know about str_replace. Re: the external requests - yes, I was thinking of requests from another server using my script. Having read about why that may take place, I wanted to prevent it if possible.
  21. I'm Ade. Situated in not-so-sunny Wiltshire in the back end of beyond. I've been a front-end designer and coder for about four years now and branched out into SEO development last year. I use Notepad++ because me and complex software don't mix well - I would spend more time working out how to do something that I would just doing it! HTML, CSS and JavaScript are all fine, but it's PHP that will cause me to post many questions here in the future! Can't ever really get my head around it.
  22. I think I might be glad to have found this forum - you guys look like a friendly and helpful bunch! I have a couple of questions about the validation of form data in a 3rd party form-to-email script that is driving me nuts. It's a long script unfortunately, but I have uploaded a copy here as an attachment. If you need to know anything else, please ask. If validation fails, the script insists on printing an error message even though it is set up (according to the instructions) to redirect to my own error page. How can I fix this without screwing up the script? I think the print error functions might be causing it because there is a redirect for empty fields, configured according to the same instructions) and that works fine. The next problem involves validating the phone number field. I don't know how to validate UK numbers with spaces (I don't want to have to tell users not to enter spaces). I want to permit both the 5/6 and 4/3/4 formats, if you see what I mean. I would like to be able to add the ability to limit data lengths (if that's the right term) as I know that doing that in the HTML is not secure if a spammer writes their own version of my form. The script might do that already, but I can't see it anywhere. Related to that, do you know if php.ini can prevent external requests of PHP scripts, or does the script that I'm using check for that? That's all for now, hopefully. I hope you can help because I really need to get this sorted soon. Thanks in advance.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.