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.

_Jabba_

Members
  • Joined

  • Last visited

Reputation Activity

  1. Like
    I've been running my PC (Win XP) for the last 5/6 years and it's still as sprightly as when it was new. I've never re-installed Windows, there's no need to
     
    All I do is:
    Clear out temp files and other crud once a month ( I use the excellent http://www.piriform.com/ccleaner )
    Remove software I no longer use
    Delete files I no longer need from time to time
    Defrag a couple of times a year ( using http://www.piriform.com/defraggler )
    Keep an eye on Startup programs and remove anything i don't need
     
    Any OS needs maintenance from time to time, even MacOSX benefits from a spring clean every so often to remove all the crud that accumulates.
  2. Like
    _Jabba_ reacted to JoshUK in Which Laptop should I get for Web Designing?   
    you dont know what your missing.
  3. Like
    _Jabba_ reacted to wellerweb in Review my First Attempt   
    Thanks for the feedback! I really appreciate your input, as the high majority of this community probably has way more experience than I do.
     
    @Jabba yes, the client wants the primary purpose of the site is to simply provide information about the business and have users connect with the company via newsletter sign-up and Facebook.
     
    @Teodora I definitely agree with the white space, I'm throwing around a few different spacing ideas right now so we'll see how that goes. I'm going to add icons as well, and try to get some more textures and interesting bits to fit into the overall "Sew Passion" theme.

    Thanks again, I'll update this thread when I have made some more alterations.
  4. Like
    _Jabba_ got a reaction from Lyndsey in keep active link highlighted   
    I actually delt with this last week. I had to do it up for a friend pretty quickly so it's not perfect and jquery is unecessairly used for the latter half of the coding. Anyway, I added annotations for you so basically have at it!

    HTML
    <nav><!-- begin navigation--> <ul> <li><a href="/home.html">Home</a></li> <li><a href="/aboutus.html">About Us</a></li> </ul> </nav><!--end navigation-->


    CSS
    .active { color:#000; font-size: 34px; }

    Javascript
    $(function(){ var url2 = window.location.pathname; //GET URL var urlsplit = url2.split("/"); // SPLIT SLASHES INTO SECTIONS var currentpath = urlsplit[1]; // DETERMINE WHICH SECTION TO QUERY (e.g. urlsplit[1] will equal /portfolio/ if the url is: example.com/portfolio/cake/sweet/). var url = currentpath, // GET current path urlRegExp = new RegExp(url.replace(/\/$/,'') + "$"); //SHOW CURRENT PATH (For testing) //alert (urlRegExp) $('nav a').each(function(){ //DEFINE NAVIGATION LINKS if(urlRegExp.test(this.href.replace(/\/$/,''))){ $(this).addClass('active'); // ADD ACTIVE CLASS } }); }); // LOVE YOURSELF!
    Please note that this should be run on a server due to the primative coding used. If you run it locally then you will have to set the urlsplit to a high number; else, if left at 1, it will return the first section of the url which WILL be your drive letter (e.g. file:///C:/).

    VIEW DEMO

    Download Full code
  5. Like
    _Jabba_ reacted to Lyndsey in keep active link highlighted   
    If you're looking to set the active class once you've clicked on the link and are currently on the selected page, you can use a PHP approach, like this:
     
    //CSS Selected Class .selected { text-decoration:underline; } <?php //Create array of navigation links and echo out on page //CREATE $page VARIABLE ON EACH OF THE 4 PAGES THAT MATCHES THE ARRAY KEY e.g. on your home page, set $page="Home"; before running the navigation array... $navigation = array( "Home" => "home.php", "About" => "pics.php", "Sites" => "about.php", "Contact" => "contact.php" ); ?> <ul id="nav"> <?php foreach ($navigation as $linkName=>$link) { ?> <li><a href="<?php echo $link; ?>" <?php if($page == $linkName) { echo "class='selected'"; } ?>><?php echo $linkName; ?></a></li> <?php } //end loop ?> </ul>  
    Hope that helps!
     
    Edit: Don't think I explained that well enough...
     
    In each of your pages, create a variable called $page and set that to the key value you've set in your navigation array. So if array keys are like this: "home", "about"...on your home page you'd set $page="home"; and on the about page, you'd set $page="about"; Set this variable before creating the array of navigation. The array is just a quicker way of creating your navigation; each time you want to add a new link, just add it to the array and set up the corresponding $page variable. Inside the loop, we do a check for the $page variable. If it equals the array key (e.g. if $page="home" equals array key="home" then we apply the selected class. This just underlines the text.
  6. Like
    _Jabba_ got a reaction from teodora in keep active link highlighted   
    I actually delt with this last week. I had to do it up for a friend pretty quickly so it's not perfect and jquery is unecessairly used for the latter half of the coding. Anyway, I added annotations for you so basically have at it!

    HTML
    <nav><!-- begin navigation--> <ul> <li><a href="/home.html">Home</a></li> <li><a href="/aboutus.html">About Us</a></li> </ul> </nav><!--end navigation-->


    CSS
    .active { color:#000; font-size: 34px; }

    Javascript
    $(function(){ var url2 = window.location.pathname; //GET URL var urlsplit = url2.split("/"); // SPLIT SLASHES INTO SECTIONS var currentpath = urlsplit[1]; // DETERMINE WHICH SECTION TO QUERY (e.g. urlsplit[1] will equal /portfolio/ if the url is: example.com/portfolio/cake/sweet/). var url = currentpath, // GET current path urlRegExp = new RegExp(url.replace(/\/$/,'') + "$"); //SHOW CURRENT PATH (For testing) //alert (urlRegExp) $('nav a').each(function(){ //DEFINE NAVIGATION LINKS if(urlRegExp.test(this.href.replace(/\/$/,''))){ $(this).addClass('active'); // ADD ACTIVE CLASS } }); }); // LOVE YOURSELF!
    Please note that this should be run on a server due to the primative coding used. If you run it locally then you will have to set the urlsplit to a high number; else, if left at 1, it will return the first section of the url which WILL be your drive letter (e.g. file:///C:/).

    VIEW DEMO

    Download Full code
  7. Like
    _Jabba_ reacted to porkchops in CSS vs Tables   
    You're a brave man...
     
    It certainly was easier to lay things out using tables the first time you built a page. But the next time when you had to move a box on all 250 of your pages you had to go through and do it manually. Any minor changes required fighting the table structure or sometimes completely rebuilding the table. Obviously there were ways to mitigate this but they still don't hold up against CSS.
     
    With CSS-based layouts you have a master style sheet (because only fools use inline or embedded styles ) so when a change needs to be made you make it to one sheet. Floats are a pain in the ass sometimes, but the flexibility they provide vastly outweighs the negatives associated with them.
     
    Also, CSS removes all markup from the document that isn't absolutely required for the core structure of your page. If you turn off CSS you should see a very neatly outlined website that you could print and get the same level of comprehension as if you had CSS turned on. Removing all the junk markup allows screen readers and human readers alike to easily digest information instead of viewing frilly graphics and the like. It also drastically reduces the file size of each page, and as anyone who works with the web should know, even with broadband every little bit that you can shave off of your site footprint will affect your page load speed and ultimately (especially for larger entities) affect your bottom line.
  8. Like
    _Jabba_ reacted to MikeChipshop in IE 9   
    It's better but still has some way to go.
  9. Like
    _Jabba_ reacted to telford001 in IE 9   
    Well its hell for just being Internet Explorer, but on the plus side its rending pages better for me and it has css3 support now

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.