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.

smortimer

Privileged
  • Joined

  • Last visited

Reputation Activity

  1. Like
    smortimer reacted to heydanreeves in Why does this happen?   
    Look at this demo I just made up: http://jsbin.com/emabuy/1/edit
     
    You can see the 'directionNav: false' option working. Hopefully if you look at my code you can see how to get yours to work.
  2. Like
    smortimer reacted to mteam in Side scrolling a la BBC Android app   
    Your link to the jquery lib is still pointing at your computer
     
    try using this
     

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
     
    Edit Zed beat me to it
  3. Like
    smortimer reacted to zed in Side scrolling a la BBC Android app   
    and also note on theirs that the css file is before the javascript
  4. Like
    smortimer reacted to zed in Side scrolling a la BBC Android app   
    well your source is telling the page to look on your hard disk for the jquery file
  5. Like
    smortimer reacted to WebSetGo in Hi   
    The links on the site are picking up the nav styling because targeted links of any type, anywhere. If you look at your css the definition to give the links style is just "a:link, a:visited". If you want them to only be styled in the side nav then you need to target that like this "#navigation a:link, #navigation a:visited" etc. It will only style links contained inside the element with id "navigation" then
     
    hope that helps
  6. Like
    smortimer reacted to Alex Seymour in Hi   
    If you want the links to show the same background as when they are "rolled-over" then add and ID to the body tag for each page (i.e homePage, servicesPage etc) and then add an ID to each of the navigation links (i.e homePageLink, servicesPageLink etc) then use CSS to apply the background colour.
     
    For example:
    Add this to your homepage body tag.

    <body id="homePage">
    Change the tag for each page though so on the services page you'd make it

    <body id="servicesPage">
     
    Then add to the tags in the navigation

    <li id="homePageLink"><a href="index.html">About Us</a></li> <li id="servicesPageLink><a" href="Our_Services.html">Our Services</a></li> <li id="clientPageLink"><a href="Our_Clients.html">Our Clients</a></li> <li id="linksPageLink"><a href="Useful_Links.html">Useful LInks</a></li> <li id="offeredPageLink"><a href="Offered_Sites.html">Offered Sites</a></li> <li id="contactPageLink"><a href="Contact_Us.html">Contact Us</a></li>
     
    Then add the following to the CSS

    #homePage #homePageLink a:link, #homePage #homePageLink a:visited, #servicesPage #servicesPageLink a:link, #servicesPage #servicesPageLink a:visited { background: #C50070;}
     
    Just make sure that you add all the IDs for each navigation link to the above rule.
  7. Like
    smortimer reacted to Alex Seymour in Hi   
    Ok at the moment you've got this

    <body> <body id="homePage"> <body id="servicesPage> <body id="clientPage"> <body id="linksPage"> <body id="offeredPage"> <body id="contactPage">
     
    You should only have one <body> tag per page, so on the useful links page you should only have

    <body id="linksPage>
    on the home page

    <body id="homePage">
     
    Instead of adding more body tags just add the ID to the one that's already on the page.
     
    The problem you were having is because you forgot a " after the servicesPage ID.
  8. Like
    smortimer reacted to Alex Seymour in Hi   
    On the "Our Clients" page you've put

    #clientPageLink #clientPageLink a:link, #clientPageLink #clientPageLink a:visited
    instead of

    #clientPage #clientPageLink a:link, #clientPage #clientPageLink a:visited
     
    On the "Offered Sites" page you haven't added the css rule at all.
  9. Like
    smortimer reacted to zed in Opinions please   
    it's because it is in a subdirectory http://www.smortimerphoto.co.uk/js/jquery-lightbox-0.5/
  10. Like
    smortimer reacted to Dizi in A little confused   
    try moving the picture above the text block in your code, like so:
     
     

    <div class="pic2"><img src="Images/Pinsent_Masons.jpg" width="400" height="325" alt="Jon_Race" /></div> <div class="text2"> <strong>Pinsent Masons</strong><br /> Law firm, Pinsent Masons, has relocated their London operations to 30 Crown Place creating a new London headquarters with MCM providing the interior architectural services. <p>Co-locating from three buildings, they wanted to create a cohesive workplace that really reflects their position in the London legal market and demonstrates their values and client service. A more detailed case study can be viewed here.</p> </div>
     
    That might help, if not I'll have a look at the code in more depth
  11. Like
    smortimer reacted to ionix in Oh flippin' 'eck   
    I ran the page through the W3C validator (validator dot w3 dot org) and it returned 42 errors including the following issue:
     

    </table> <tr> </body> <!-- InstanceEnd --></html>
     
    You have included a <tr> tag after your </table> tag...
     
    Hope this help!
     
    - ionix
  12. Like
    smortimer reacted to zed in Oh flippin' 'eck   
    are you able to detach the template in DW?
  13. Like
    smortimer reacted to Ste Hughes in Is this possible?   
    great answer +1
  14. Like
    smortimer reacted to Jo 90 in Oh 'eck   
    Hi,
     
    It's because your container div is too small to fit all the li elements on one line, either increase the width of the container or decrease the width of the li's - this should fix it:
     

    #navcontainer ul li {width: 95px}
     
    Just add the width to that div#element
  15. Like
    smortimer reacted to Bomb in Have no idea what I am doing...   
    Not too sure i can see the problem, please explain a little more.
  16. Like
    smortimer reacted to Bomb in Have no idea what I am doing...   
    Just create the new pages, don't add links to them from the main navigation buttons just wrap a <a href> tag around the words in the text you want to use to link to the files/pages.
  17. Like
    smortimer reacted to Bomb in Have no idea what I am doing...   
    No problem, glad it helped. You might still want to change the .current padding to 10px 5px 8px 5px though as the current tab seems to sit a couple of pixels above the other tabs when they are hovered over.
     
    Also have you noticed that the whole site scrolls horizontally?
  18. Like
    smortimer reacted to Bomb in Have no idea what I am doing...   
    Change the padding of .current to 10px 5px 8px 5px
  19. Like
    smortimer reacted to Bomb in Have no idea what I am doing...   
    Did you make the changes I suggested in my last post?
  20. Like
    smortimer reacted to Bomb in Have no idea what I am doing...   
    here's the code for the first set of nav buttons...
     
    HTML:

    <ul class="nav"> <li><p class="current">Home</p></li> <li><a href="#section2">Services</a></li> <li><a href="#section3">Training</a></li> <li><a href="#section4">Clients</a></li> <li><a href="#section5">Who?</a></li> <li><a href="#section6">Contact</a></li> </ul>
     
    CSS:
     

    .current{background-color:#cc0000; color:#fff; text-align:center; padding: 9px 6px; }
     
    Also don't forget to change the a:link colour back to grey.
  21. Like
    smortimer reacted to AlecIsh in Have no idea what I am doing...   
    Looking good so far
  22. Like
    smortimer reacted to Bomb in Have no idea what I am doing...   
    **EDIT** See below!!
  23. Like
    smortimer reacted to Bomb in Have no idea what I am doing...   
    Ok remove the background colour from this...
     

    .white ul li a
  24. Like
    smortimer reacted to Bomb in Have no idea what I am doing...   
    Have you added it to the live site you linked to earlier in this thread? If so I can't see where you've added the changed code or css.
  25. Like
    smortimer reacted to Bomb in Have no idea what I am doing...   
    Yes the screen grab shows what it would look like with the coding in place.
    @AlecIsh, your way would probably make things neater, this is just a quick, simple fix. So get out from under that rock lol!

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.