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.

Hello me again. Stuck.

Featured Replies

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

  • 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 :?

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?

  • 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;
}

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>

What I´m doing is like this.

 

a.one:hover

{

background-color:red;

}

 

<a class="one" href="#">Your link</a>

 

Works in all browsers.

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.

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...

  • 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.

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;
}

  • 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?

  • 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. :(

  • 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?

  • 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?

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 by Bomb

  • 3 weeks later...
  • 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?

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 by pat24

  • 3 weeks later...
  • 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 :)

  • 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

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

  • 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 :(

strange. attached my test, the only thing that shows is the thomson local message. I guess it's possible then :)

post-19862-0-39177700-1304695990_thumb.jpg

  • 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>

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

  • 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?

post-28076-0-40013700-1304697887_thumb.png

The link I did was using your address (I think)

Not aware of any issues having two they are iframes after all.

  • 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?

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

 

  • 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 :)

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>

 

  • 4 weeks later...
  • 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 :)

  • 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

Make a wrapper with the following CSS properties:

 

width: 960px; /* or however wide your content is */
margin: auto;

:)

  • 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

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.