March 29, 201115 yr Hello I'm having problems getting this right http://www.fonda.co.uk/PropDev/ The idea I had was when you roll over a different section the background colour will change. Have tried putting in a a:hover tag in but doesn't do anything that I can see. Not sure how to go about this. Any help would be greatly appreciated. Thanks
March 30, 201115 yr Author I don't think I explained that quite well. The idea was so when someone rolls over the box (separated by white lines) it would change colour. I have managed to change the background to text green but thats not what I had in mind. Can div tags be treated like links? I think thats cleared that one up :?
March 30, 201115 yr Some browsers have support for div:hover. Your probably better off using ul/li instead of divs as quite a most browsers support li:hover. Does that help?
March 30, 201115 yr Author Some browsers have support for div:hover. Your probably better off using ul/li instead of divs as quite a most browsers support li:hover. Does that help? I think so, just not entirely sure how to do it... This is what I have done so far #Navigation_container { width: 950px; overflow: hidden; } #Navigation { float: left; background-color: #999; font-family: Arial, Helvetica, sans-serif; font-size: 9pt; border-left-width: 1px; border-left-style: solid; border-left-color: #FFF; color: #FFF; font-weight: normal; line-height: 13pt; height: 125px; padding-top: 10px; padding-right: 35px; padding-bottom: 10px; padding-left: 25px; background-image: url(../Images/Propeller_Nav_Background.jpg); background-repeat: repeat-x; } .Navigation a:hover { color: #FFF; text-decoration: none; background-color: #CC3; height: 125px; padding: 5px; }
March 30, 201115 yr Currently you have each div with id="Navigation" each ID should be unique. To start I'd change the HTML to something like <div id="navigation"> <ul> <li> <ul> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> </ul> </li> <li> <ul> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> </ul> </li> <li> <ul> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> </ul> </li> </ul> </div>
March 30, 201115 yr What I´m doing is like this. a.one:hover { background-color:red; } <a class="one" href="#">Your link</a> Works in all browsers.
March 30, 201115 yr What I´m doing is like this. a.one:hover { background-color:red; } <a class="one" href="#">Your link</a> Works in all browsers. That won't do what the OP is asking for.
March 30, 201115 yr Ok, you now need to update your CSS delete what you currently have and try... #navigation { } #navigation ul { overflow:hidden; } #navigation ul li { float:left; background: #999 url(../Images/Propeller_Nav_Background.jpg) repeat-x; font: normal 9px/13px Arial; border-left: 1px solid #fff; color: #fff; height: 125px; padding: 10px 35px 10px 25px; } Then go from there...
March 30, 201115 yr Author Thanks for this. Not quite how I was expecting. * Rooms * Studio * Bar * Clients These would be in one box and as someone rolls over it the background to the box will change colour. This is a link to their old site. The thinking would be like this but smoother, instead of clicking on a link for the background to change it would change on rollover. My link My fault, I probably didn't explain it very well.
March 30, 201115 yr Change the HTML and the CSS to the following: <div id="navigation"> <ul> <li class="navcol"> <ul> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> </ul> </li> <li class="navcol"> <ul> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> </ul> </li> <li class="navcol"> <ul> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> </ul> </li> </ul> </div> #navigation { } #navigation ul { overflow:hidden; } #navigation ul li.navcol { float:left; background: #999 url(../Images/Propeller_Nav_Background.jpg) repeat-x; font: normal 9px/13px Arial; border-left: 1px solid #fff; color: #fff; height: 125px; padding: 10px 35px 10px 25px; }
March 30, 201115 yr Author Change the HTML and the CSS to the following: <div id="navigation"> <ul> <li class="navcol"> <ul> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> </ul> </li> <li class="navcol"> <ul> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> </ul> </li> <li class="navcol"> <ul> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> <li><a href="#">Link 1</a></li> </ul> </li> </ul> </div> #navigation { } #navigation ul { overflow:hidden; } #navigation ul li.navcol { float:left; background: #999 url(../Images/Propeller_Nav_Background.jpg) repeat-x; font: normal 9px/13px Arial; border-left: 1px solid #fff; color: #fff; height: 125px; padding: 10px 35px 10px 25px; } Ah right thats it. I've set up a a:hover tag for a instance when someone rolls over the "box". Doesn't work. Any ideas?
March 30, 201115 yr For the About 'group' to have a hover style you need to do.. #navigation ul li.navcol:hover { background:red; }
March 30, 201115 yr Author For the About 'group' to have a hover style you need to do.. #navigation ul li.navcol:hover { background:red; } Wanted to change the background colour from red to #9C3. For some reason it won't change.
March 31, 201115 yr Author Seems to be working now? looking good! I've got a problem positioning the block of text, would like it forced under the navigation but when window is larger it forces itself left of the navigation. Should I set up another <div> tag?
April 1, 201115 yr Author I've got a problem positioning the block of text, would like it forced under the navigation but when window is larger it forces itself left of the navigation. Should I set up another <div> tag?
April 1, 201115 yr I've got a problem positioning the block of text, would like it forced under the navigation but when window is larger it forces itself left of the navigation. Should I set up another <div> tag? Yes... <div id="navigation">Your navigation code</div> <div id="text">Your block of text goes here</div> css: #text{clear:both;} Edited April 1, 201115 yr by Bomb
April 21, 201115 yr Author http://www.fonda.co.uk/PropDev/Location/Restaurants.html I wanted to have the block titled * LOCATION * How to get here * About Borough * Bar & Pubs * Restaurants * Hotels to stay orange (so users know they are in "location") have tried adding this #navigation ul li.navcol:active { background-image: url(../Images/Propeller_Nav_Background_OrangeHover.jpg);} in the navigation_nav.css but doesn't seem to do anything. Any ideas anyone?
April 21, 201115 yr Can you add this to the css #navigation ul li.navcolcurrent { add all the styles from #navigation ul li.navcol but change the image to the orange one } then in the html add this <li class="navcolcurrent"> to the page that is active eg if it is the services page your html wouldbe <li class="navcolcurrent"> <ul> <li>SERVICES</li> <li><a class="color1" href="filming.html">Filming</a></li> <li><a class="color1" href="food_drink.html">Food & Drink</a></li> <li><a class="color1" href="rates.html">Rates</a></li> <li><a class="color1" href="recruitment.html">Recruitment</a></li> </ul> </li> just change the li class for every active page. hope that makes sense Pat Edited April 21, 201115 yr by pat24
May 6, 201115 yr Author Hello (again) On this page I don't know how to get rid of the bubble on Google Maps My link Went on to Google and tried finding the address without the bubble and it still shows. Any help? I also want to put all the navigation on a black strip that stretches across the screen. Have tried to put in a new div tag but then starts to mess up the navigation boxes. Any ideas? Thank you
May 6, 201115 yr Author Hello (again) On this page I don't know how to get rid of the bubble on Google Maps My link Went on to Google and tried finding the address without the bubble and it still shows. Any help? I also want to put all the navigation on a black strip that stretches across the screen. Have tried to put in a new div tag but then starts to mess up the navigation boxes. Any ideas? Thank you Have put in iwloc=near in the google maps code but hasn't made any difference
May 6, 201115 yr I saw that iwloc fiddle but it looks like they may have changed the api. I just found if you put 'aa' after hq= it works. <iframe width="300" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.co.uk/maps?f=q&source=s_q&hl=en&geocode=&q=72-76+Borough+High+Street&aq=&sll=53.800651,-4.064941&sspn=17.151708,28.212891&ie=UTF8&hq=aa&hnear=76+Borough+High+St,+Camberwell,+Greater+London+SE1+1,+United+Kingdom&ll=51.504175,-0.091496&spn=0.008014,0.012832&z=15&output=embed"></iframe> don't ask why and aa was just close to hand on the keyboard lol
May 6, 201115 yr Author I saw that iwloc fiddle but it looks like they may have changed the api. I just found if you put 'aa' after hq= it works. <iframe width="300" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.co.uk/maps?f=q&source=s_q&hl=en&geocode=&q=72-76+Borough+High+Street&aq=&sll=53.800651,-4.064941&sspn=17.151708,28.212891&ie=UTF8&hq=aa&hnear=76+Borough+High+St,+Camberwell,+Greater+London+SE1+1,+United+Kingdom&ll=51.504175,-0.091496&spn=0.008014,0.012832&z=15&output=embed"></iframe> don't ask why and aa was just close to hand on the keyboard lol Doesn't seem to work with me. Still get the bubble
May 6, 201115 yr strange. attached my test, the only thing that shows is the thomson local message. I guess it's possible then
May 6, 201115 yr Author Nope hasn't worked. This is the code I put in. <iframe width="300" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.co.uk/maps?f=q&source=s_q&hl=en&geocode=&q=72-76+Borough+High+Street&aq=&sll=53.800651,-4.064941&sspn=17.151708,28.212891&ie=UTF8&hq=aa&hnear=76+Borough+High+St,+Camberwell,+Greater+London+SE1+1,+United+Kingdom&ll=51.504175,-0.091496&spn=0.008014,0.012832&z=15&output=embed"></iframe>
May 6, 201115 yr okay, try this. Worked for me too http://www.webdesigncreare.co.uk/blog/videos/remove-bubble-google-maps.html and the code I have is <iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.co.uk/maps?f=q&source=s_q&hl=en&geocode=&q=72-76+Borough+High+Street&aq=&sll=53.800651,-4.064941&sspn=17.151708,28.212891&ie=UTF8&hq=&hnear=76+Borough+High+St,+London+SE1+1LL,+United+Kingdom&view=map&t=h&z=14&ll=51.50368,-0.091753&&iwloc=&output=embed"></iframe><br /><small><a href="http://maps.google.co.uk/maps?f=q&source=embed&hl=en&geocode=&q=72-76+Borough+High+Street&aq=&sll=53.800651,-4.064941&sspn=17.151708,28.212891&ie=UTF8&hq=&hnear=76+Borough+High+St,+London+SE1+1LL,+United+Kingdom&view=map&t=h&z=14&ll=51.50368,-0.091753" style="color:#0000FF;text-align:left">View Larger Map</a></small> I suspect you can remove the link part if you don't need it
May 6, 201115 yr Author Thats a bit freaky, just been trying the same thing and replacing the link with my clients address. But still not working have put in this code <iframe width="300" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.co.uk/maps?f=q&source=s_q&hl=en&geocode=&q=72-76+Borough+High+Street&aq=&sll=53.800651,-4.064941&sspn=17.151708,28.212891&ie=UTF8&hq=&hnear=76+Borough+High+St,+London+SE1+1LL,+United+Kingdom&view=map&t=h&z=14&ll=51.50368,-0.091753&&iwloc=&output=embed"></iframe> . Bit confused now Is there some coding that doesn't allow you to cut and paste google maps in more than once?
May 9, 201115 yr Author I wanted to place a black background across the width of the screen behind the navigation. I have added a "wrapper" div but doesn't look like its doing the job. I may have placed it in the wrong place. Any ideas?
May 9, 201115 yr I wanted to place a black background across the width of the screen behind the navigation. I have added a "wrapper" div but doesn't look like its doing the job. I may have placed it in the wrong place. Any ideas? Not 100% sure if this is what you are after but try this #logo { background-color: #000000; height: 100px; margin: 0; padding: 20px 0 20px 20px; width: 100%;} Pat
May 9, 201115 yr Author Not 100% sure if this is what you are after but try this #logo { background-color: #000000; height: 100px; margin: 0; padding: 20px 0 20px 20px; width: 100%;} Pat Thanks. Not quite what I was after. Wanted the navigation boxes on a black background My link Think this should explain this better
May 9, 201115 yr Thanks. Not quite what I was after. Wanted the navigation boxes on a black background My link Think this should explain this better In the link you just gave me can you add this to the css #nav_wrapper { background-color: #333333; color: #FFFFFF; height: 140px; padding: 15px; width: 100%;} and move the closing </div> for the wrapper to after the closing </ul> of your nav So the code would be like </ul></div></div>
June 3, 201115 yr Author Hello again I'm stuck to find a solution to this. Client has two parts to their business (field and Studio) they wanted some link that connect the two (ie easily change from one part of the business to the other). I haven't seen any good examples. Can anyone suggest anything or have seen a nice example? Fanks
June 6, 201115 yr Author Hello The client has come back with something that I can't seem to do. They wanted the pages to be centred, I've tried to put in a wrapper div and everything is contained within this wrapper but it doesn't seem to work. Does anyone know how I should do this? Thank you
June 6, 201115 yr Make a wrapper with the following CSS properties: width: 960px; /* or however wide your content is */ margin: auto;
June 6, 201115 yr Author Make a wrapper with the following CSS properties: width: 960px; /* or however wide your content is */ margin: auto; Thank you. I've just realised I was looking at the preview not the actual site when I was doing it. Was having a "thick" moment
Create an account or sign in to comment