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.

rollover image wont work

Featured Replies

Hi I am currently building a site and have sliced up an image in PS and saved it for the web. The image is up on DW and also I have saved the buttons as rollover images as well which are different images. o far so good? So I go through the tutorials and insert> images objects> rollover image etc and save it. But whgen I view and test it in the browser window the rollover doesnt work, only the alternate text pops up telling me its the home page when the curser is over the buton but no rollover! Can anyone help?

 

Rich

if it's showing alt text but no image, that means the image file can't be found. check the image url in the code.

  • Author

Nice one il definately be giving that a try...

 

Also ive built most of it now but have a few problems/questions..

 

1) Im using images as links to other pages, but once those images are made into links they perminently have a blue/purple box around them in the design view and the browser, how can I get rid of this?

 

2) Also how can I make the links I have made at the bottom of each page to stay black and not go purple once made into a link??

 

3) I have imported word docs into the pages but on one page only the text will only show in the default font only and not in the font it was written in in word or the font I have changed it to in Dreamweaver, whats happened?

 

Sorry to be a pain.

 

Rich

With your rollovers, do you have the rolled over image saved? You need the image that it would look like once rollover sliced up and then link that with the roll over.

 

Nice one il definately be giving that a try...

 

Also ive built most of it now but have a few problems/questions..

 

1) Im using images as links to other pages, but once those images are made into links they perminently have a blue/purple box around them in the design view and the browser, how can I get rid of this?

 

2) Also how can I make the links I have made at the bottom of each page to stay black and not go purple once made into a link??

 

3) I have imported word docs into the pages but on one page only the text will only show in the default font only and not in the font it was written in in word or the font I have changed it to in Dreamweaver, whats happened?

 

Sorry to be a pain.

 

Rich

 

1. Add to the code for the image border="0" so would be something like

<img src="" width="" height="" alt="" border="0"/>

 

2. You can style the visited links using css. In your CSS write:

a:visited{
color:*whatever colour you want*;
text-decoration:*if you want underline etc..*;
}

 

So you can style it to black etc

 

3. Not sure what your doing importing word documents? But if you want just the text, copy and paste into a div tag and then style it however you want with css again.

 

If you don't know CSS I would look it up as it will be very useful for you!

Copy/paste directly from Word is often a bad idea as Word formatting will also be copied and add a load of silly code.

 

If I am sent a Word doc for putting into web format, I always select all, copy/paste to a plain text editor (e.g. Notepad) and then copy/paste again for the web document. Sounds a pain but it takes about 3 seconds. It can then be styled as it should be with CSS.

  • Author

Cheers guys amazin!

 

Il get on the case with fine tuning the code...as for CSS ive not yet learned that but can't wait too, in the future il definately make the text for my sourced material Notepad documents not Word... :)

 

Thanks all.

  • Author

I blacked the text out and ive lost those borders now but still cant see where to edit the fact the links are still underlined e remove the underlines?

 

<td background="../images/contact.htm"><div align="center" class="style2a"><a href="../images/index.htm" class="style2a">Home</a> - <a href="../images/biography.htm" class="style2a">Biography</a> - <a href="../images/digital design.htm" class="style2a">Digital Design</a> - <a href="../images/car design.htm" class="style2a">Car Design</a> - <a href="../images/contact.htm" class="style2a">Contact</a></div></td>

 

Any ideas, this is the code for the links..?

I blacked the text out and ive lost those borders now but still cant see where to edit the fact the links are still underlined e remove the underlines?

 

<td background="../images/contact.htm"><div align="center" class="style2a"><a href="../images/index.htm" class="style2a">Home</a> - <a href="../images/biography.htm" class="style2a">Biography</a> - <a href="../images/digital design.htm" class="style2a">Digital Design</a> - <a href="../images/car design.htm" class="style2a">Car Design</a> - <a href="../images/contact.htm" class="style2a">Contact</a></div></td>

 

Any ideas, this is the code for the links..?

In your css file you will need to put this code.

 

a {
 text-decoration: none;
}

and if you want the link to underline on a hover just use this

a:hover {
 text-decoration: underline;
}

 

Hope this helps.

Ben

and what is a quick and easy way to centralise my site..?

Have a look at this thread to centre a site.

Centre a site.

  • Author

Yeah it helps cheers Ben.

 

But where exactly do i find that CSS code??

Yeah it helps cheers Ben.

 

But where exactly do i find that CSS code??

You will have to write it out yourself i'm afraid but dont be scared.

In the same location as these files put a file called css.css or default.css your choice.

 

 

Now in the file with teh navigation and this line in the <head> </head> tags.

<link href="css.css" rel="stylesheet" type="text/css" />

or

<link href="default.css" rel="stylesheet" type="text/css" />

Depending what you call your css file. dont use both.

 

Now in the css file add the

 

a{

}

 

css code in there and hopefully it should accept your link tags in the document you want.

 

as for the centre site css, follow dizis tut and you should be able to do.

 

The only nack i have with your code is your using tables, which isn't a good way and most people will agree on this forum.

 

If you need any more help just reply to the thread or PM me i'll be happy to help, and if you want to put your site so you are not using tables gimme a pm and ill help you do it :)

 

Ben

  • Author

Yeah cheers man. Ive jut sent you a pm about that but yeah as for the tables situation I know they are old hat and I am to use divs instead but for now while im getting this site done im gona have to do it the old way before I learn how to us CSS and divs.

 

Cheers again.

Yeah cheers man. Ive jut sent you a pm about that but yeah as for the tables situation I know they are old hat and I am to use divs instead but for now while im getting this site done im gona have to do it the old way before I learn how to us CSS and divs.

 

Cheers again.

PM'd back hope to hear from you soon, and you'll learn some CSS and div work when you read over what i do for ya.

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.