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.

IWannaDesigner

Members
  • Joined

  • Last visited

  1.    oakleaves reacted to a post in a topic: Hyphenated Email Not Getting Through
  2. Change: else if(!preg_match('/^[^\W][a-zA-Z0-9_]+(\.[a-zA-Z0-9_]+)*\@[a-zA-Z0-9_]+(\.[a-zA-Z0-9_]+)*\.[a-zA-Z]{2,4}$/', $email)){ //validate email address - check if is a valid email address To else if(!preg_match('/^[^\W][a-zA-Z0-9_]+(\.[a-zA-Z0-9_]+)*\@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)*\.[a-zA-Z]{2,4}$/', $email)){ //validate email address - check if is a valid email address This will allow hypens to be a valid character in the domain part of the email address EDIT: Nvm, you must have posted whilst I was testing to make sure it works
  3. That code all looks fine, there's probably more to it. Can you upload the page for me to have a look at?
  4.    sash_oo7 reacted to a post in a topic: Search field issue
  5. Your list elements from ul.wish are appearing above the search box, making it unclickable apart from the few pixels on the left. Remove the margin from the hyperlinks in the wishlist: ul.wish li a { color: #000000; display: block; font-size: 12px; height: 38px; line-height: 30px; padding: 0 10px 0; } Remove your negative margin from the wishlist, remove the left margin and float it right instead: ul.wish { float: right; margin: 0; padding: 0; }
  6. You're right there. It's soon going to be the New Grey Wunderbar: (skip to 30 seconds-ish) http://www.youtube.com/watch?v=vSIMpFfNLEA
  7. IWannaDesigner replied to Gecko's topic in Frontend
    How about an image map? If you have Dreamweaver it's dead easy to generate - you basically just draw out your hotspots and it'll create the links for you. If you're wanting to put text over the image then you could still have the image as a background image, and then absolutely position divs over it... <div id="my-image"> <ul> <li class="hotspot-1">Hotspot 1</li> <li class="hotspot-2">Hotspot 2</li> </ul> </div> #my-image { background:url(images/myimage.jpg); width:500px; height:500px; position:relative; } #my-image ul { margin:0; padding:0; } #my-image ul li { list-style:none; display:block; position:absolute; } #my-image ul li.hotspot-1 { width:10px; height:20px; top:10px; left:25px; } #my-image ul li.hotspot-2 { width:15px; height:10px; top:40px; left:125px; } And if you only want your hotspots to show when you've hovered over them #my-image ul li { display:none; } #my-image ul li:hover { display:block; } Ideally, if your hotspots contain links then it's better, because you're not relying the :hover pseudo-selector on the <li> and you can apply the styles to the <a> tag instead... <div id="my-image"> <ul> <li class="hotspot-1"><a href="#hotspot-1">Hotspot 1</a></li> <li class="hotspot-2"><a href="#hotspot-2">Hotspot 2</a></li> </ul> </div> #my-image { background:url(images/myimage.jpg); width:500px; height:500px; position:relative; } #my-image ul { margin:0; padding:0; } #my-image ul li { list-style:none; } #my-image ul li a { display:none; position:absolute; } #my-image ul li a:hover { display:block; } #my-image ul li.hotspot-1 a { width:10px; height:20px; top:10px; left:25px; } #my-image ul li.hotspot-2 a { width:15px; height:10px; top:40px; left:125px; } Or you can add a bit of jQuery to make things a little easier and cross-browser compatible (with the reliance on jQuery)... #my-image { background:url(images/myimage.jpg); width:500px; height:500px; position:relative; } #my-image ul { margin:0; padding:0; } #my-image ul li { list-style:none; display:none; position:absolute; } #my-image ul li:hover, #my-image ul li.hover { display:block; } #my-image ul li.hotspot-1 { width:10px; height:20px; top:10px; left:25px; } #my-image ul li.hotspot-2 { width:15px; height:10px; top:40px; left:125px; } $(document).ready(function) { $('#my-image ul li').hover(function() { } $(this).addClass('hover'); , function() { //on blur $(this).removeClass('hover'); }); }); I've written the code in this box so it's untested and might have a couple of typos, but it gives you the right idea. If you can't get it working let me know!
  8. I'd try to avoid using CSS to style a button to look like a link, as different browsers treat buttons differently and it's a pain in the bottom to make it look consistent. My suggestion would be to use some degradeable JavaScript using jQuery, so that you have an actual link but the form is submitted when the link is clicked In CSS form a.submit { display:none; } Degradeable jQuery... $('form input:submit').hide(); $('form a.submit).show().click(function(){ $('form').submit(); return false; }); Basically you have both a button and a link. The link is hidden by default using CSS. The button will be visible until the JavaScript is loaded - this means people without JS can still submit the form. The jQuery then hides the button and shows the link. When the link is clicked is triggers the form to be submitted.
  9. http://www.youtube.com/watch?v=zz3guW25ZwE A couple of guys I work with have been staying behind every night for the past 2 months working on a "top-secret" video project. Yesterday I got to see the final thing, and today they uploaded to YouTube. I thought it would be worth sharing as it takes you through the journey of creating a website...hence the name. It's a stop motion video, every frame has been photographed individually - it's approximately 1 hour of filming for one second of footage. They even composed the music themselves. First time I watched it I found it really quite emotional and I've seen it so many times in the past couple of days - every time I discover something I didn't spot the last time. What do you think?
  10. If you're after the full URL of the current page including the entire querystring use: $_SERVER['REQUEST_URI'];
  11. It can find the server so either your username or password is wrong!

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.