smortimer
Privileged
-
Joined
-
Last visited
Reputation Activity
-
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.
-
smortimer reacted to mteam in Side scrolling a la BBC Android appYour 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
-
smortimer reacted to zed in Side scrolling a la BBC Android appand also note on theirs that the css file is before the javascript
-
smortimer reacted to zed in Side scrolling a la BBC Android appwell your source is telling the page to look on your hard disk for the jquery file
-
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
-
smortimer reacted to Alex Seymour in HiIf 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.
-
smortimer reacted to Alex Seymour in HiOk 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.
-
smortimer reacted to Alex Seymour in HiOn 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.
-
smortimer reacted to zed in Opinions pleaseit's because it is in a subdirectory http://www.smortimerphoto.co.uk/js/jquery-lightbox-0.5/
-
smortimer reacted to Dizi in A little confusedtry 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
-
smortimer reacted to ionix in Oh flippin' 'eckI 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
-
smortimer reacted to zed in Oh flippin' 'eckare you able to detach the template in DW?
-
smortimer reacted to Ste Hughes in Is this possible?great answer +1
-
-
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.
-
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.
-
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?
-
smortimer reacted to Bomb in Have no idea what I am doing...Change the padding of .current to 10px 5px 8px 5px
-
smortimer reacted to Bomb in Have no idea what I am doing...Did you make the changes I suggested in my last post?
-
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.
-
smortimer reacted to AlecIsh in Have no idea what I am doing...Looking good so far
-
smortimer reacted to Bomb in Have no idea what I am doing...**EDIT** See below!!
-
smortimer reacted to Bomb in Have no idea what I am doing...Ok remove the background colour from this...
.white ul li a
-
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.
-
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!