A Digital Age Deserves A Digital Leader

whats wrong with my buttons?

whats wrong with my buttons?

Postby Xstream » Sat May 29, 2004 3:09 am

using dreamweaver, my buttons aren't acting independently. what am I doing wrong?
http://www.kevincastleberry.com/testingnewindex.html

they are both getting big at the same time. they shouldn't.
PROfessional Member
User avatar
Posts: 3477
Joined: Fri Mar 15, 2002 2:30 am
Location: USA

Postby dlt » Sat May 29, 2004 3:17 am

They are alternating in size for me :yesnod:
I am extraordinary, I am just your ordinary
average every day sane psycho supergoddess
~Liz Phair, Extraordinary~
PROfessional Member
User avatar
Posts: 705
Joined: Mon Mar 11, 2002 11:56 am
Location: New England, USA

Re: whats wrong with my buttons?

Postby Weaver » Sat May 29, 2004 3:25 am

xstream wrote:using dreamweaver, my buttons aren't acting independently. what am I doing wrong?
http://www.kevincastleberry.com/testingnewindex.html

they are both getting big at the same time. they shouldn't.


They are actually both not getting "big" at the same time. When you hover over one of the images, it swaps, thus changing the size of the paragraph "box." Since both images are in the same <p> tag, the other image's position is being adjusted as well.

I don't have much experience with image swapping, but I have a few suggestions. First try removing the <p> tag from around the images. See if that at least temporarily fixes it. You could also try doing an align='top' or something similar in a stylesheet (preferably a stylesheet since align is very much deprecated).

Lastly, again I am no expert, but should the onmouseover and onmouseout attributes be in the < img > tag itself and not the < a > tag? Try moving them into the < img > tag.

-Weaver

EDIT: Added spaces to some tags to prevent phpBB parsing them as real HTML.
Public Keys

The primary purpose of the DATA statement is to give names to constants; instead of referring to pi as 3.141592653589793 at every appearance, the variable PI can be given that value with a DATA statement and used instead of the longer form of the constant. This also simplifies modifying the program, should the value of pi change.
-- FORTRAN manual for Xerox Computers
PROfessional Member
User avatar
Posts: 1967
Joined: Wed Jun 19, 2002 12:05 am
Location: /home/weaver/

Postby shougan » Sat May 29, 2004 6:41 am

The both get big but one is smaller and it works visa versa...I think there mite be a problem int he body onload....or the < a > is covering both inmages...look cool though.. ^*^
Do you want the latest news on Betas & Software, Security, or even Vista? Check out our <a href="http://www.pro-networks.org/forum/home_index.php" target="_blank" class="postlink">news areas</a> and be sure to <a href="http://www.pro-networks.org/main/newsletters.htm" target="_blank" class="postlink">subscribe to our PROneT newsletters!</a>
PRO Level 15
Posts: 1174
Joined: Tue Apr 27, 2004 2:12 am
Location: Western Hemisphere

Postby Xstream » Mon May 31, 2004 12:07 am

couldnt fix it most ways. What I ended up doing was putting each button in its on layer. then it works fine. Decided not to use it in the end though, everyone I showed it to liked the original page better. oh well. thanks guys!
PROfessional Member
User avatar
Posts: 3477
Joined: Fri Mar 15, 2002 2:30 am
Location: USA

Return to HTML, CSS, and Scripts

Who is online

Users browsing this forum: No registered users and 0 guests