Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Bidding Directory   ClickBooth Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 05-18-2007, 02:34 PM   #1 (permalink)
Inactive
 
Join Date: 04-14-07
Posts: 6
iTrader: 0 / 0%
Latest Blog:
None

Sythix is liked by many
Thumbs down Distorted buttons

Hey people.

I've been working more on my website, and improved upon the feedback you gave me a couple of months back.

But now I've got another problem
I've remade the site, with divs rather than tables, and I've been very pleased with the way everythings worked up until now. The buttons at the top of the page have somehow moved slightly and overlapped with the part above it:

http://www.sythix.co.uk/working/

The buttons should look like this:

http://www.sythix.co.uk/uploads/buttons.jpg

What's gone wrong?

If you need to know any other info such as code etc, let me know.

Thanks,

Aaron.
Sythix is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 05-18-2007, 06:58 PM   #2 (permalink)
Contributing Member
 
Brian M's Avatar
 
Join Date: 11-01-06
Location: Moberly MO
Posts: 458
iTrader: 0 / 0%
Latest Blog:
None

Brian M is just really niceBrian M is just really niceBrian M is just really niceBrian M is just really niceBrian M is just really niceBrian M is just really niceBrian M is just really niceBrian M is just really niceBrian M is just really niceBrian M is just really niceBrian M is just really nice
Send a message via Yahoo to Brian M
Hello. I visited your site and checked it against your pic. It looks excactly like your picture. I see nothing wrong with it. I am using IE 6. Perhaps its the browser you are using?
__________________
Brian M's Site
Brian M is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-18-2007, 09:07 PM   #3 (permalink)
Empress™
 
chicgeek's Avatar
 
Join Date: 08-19-04
Location: York, UK
Posts: 18,004
iTrader: 0 / 0%
Latest Blog:
My Favourite Poem

chicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest order
FF. The images are not contained in the wrap box.
I'll try to find 10 minutes tomorrow to look at your code, too tired now. (Remind me, if I do not!)
__________________
laura / chicgeek
soprano & web designer
laurakishimoto.ca
chıcgeeĸ @ flickr
chicgeek is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-18-2007, 10:02 PM   #4 (permalink)
Inactive
 
Join Date: 05-18-07
Posts: 1
iTrader: 0 / 0%
Latest Blog:
None

floridave is liked by many
Code:
#buttons{ padding-top:15px; width: 682px; height: 26px; background-color: #1e1e1e; }
floridave is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-19-2007, 04:24 AM   #5 (permalink)
Inactive
 
Join Date: 04-14-07
Posts: 6
iTrader: 0 / 0%
Latest Blog:
None

Sythix is liked by many
Quote:
Originally Posted by floridave View Post
Code:
#buttons{ padding-top:15px; width: 682px; height: 26px; background-color: #1e1e1e; }
That fixes the problem in FF, but makes the gap too big in IE...
I've updated it now and fixed a couple of other errors. It looks fine in FF, but the buttons are wrong in IE.

http://www.sythix.co.uk/working/
Sythix is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-19-2007, 07:27 AM   #6 (permalink)
v7n Mentor
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 2,927
iTrader: 0 / 0%
Costin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web pro
Thumbs down Small changes

Hi!

This was your initial html code:
Quote:
<div id="banner">
<a href="http://www.sythix.co.uk/working/index.html">
<img id="logo" height="52" alt="" src="Sythix%20Web%20%20Aaron%20Thomas_files/sythix_02.gif"
width="154" border="0"></a><a href="http://ww.sythix.co.uk/blog/"><img height="52"
alt="" src="Sythix%20Web%20%20Aaron%20Thomas_files/sythix_03.gif" width="140"
border="0"></a>
<img height="10" alt="" src="Sythix%20Web%20%20Aaron%20Thomas_files/sythix_04.gif"
width="682">
</div>
<div id="buttons">
<a href="http://www.sythix.co.uk/working/index.html">
<img id="home" height="26" alt="" src="Sythix%20Web%20%20Aaron%20Thomas_files/sythix_06.gif"
width="80" border="0" name="home"></a><a href="http://www.sythix.co.uk/working/media.html"><img
id="media" height="26" alt="" src="Sythix%20Web%20%20Aaron%20Thomas_files/sythix_08.gif"
width="80" border="0"></a><a href="http://www.sythix.co.uk/working/about.html"><img
id="about" height="26" alt="" src="Sythix%20Web%20%20Aaron%20Thomas_files/sythix_10.gif"
width="80" border="0"></a><a href="http://www.sythix.co.uk/blog/"><img id="blog"
height="26" alt="" src="Sythix%20Web%20%20Aaron%20Thomas_files/sythix_12.gif"
width="80" border="0" name="blog"></a><a href="http://www.sythix.co.uk/working/contact.php"><img
id="contact" height="26" alt="" src="Sythix%20Web%20%20Aaron%20Thomas_files/sythix_14.gif"
width="80" border="0"></a></div>
The initial CSS styles:
Quote:
#buttons {
WIDTH: 682px; PADDING-TOP: 10px; HEIGHT: 26px; BACKGROUND-COLOR: #1e1e1e;
}
#home {
MARGIN-LEFT: 8px; MARGIN-RIGHT: 68px;
}
#about {
MARGIN-LEFT: 66px; MARGIN-RIGHT: 70px
}
#contact {
MARGIN-LEFT: 63px; MARGIN-RIGHT: 7px
}
I've made a few changes, and in my IE7 and FF it looks ok.

Changes to HTML :

Quote:
<div id="banner">
<a href="http://www.sythix.co.uk/working/index.html">
<img id="logo" height="52" alt="" src="Sythix%20Web%20%20Aaron%20Thomas_files/sythix_02.gif"
width="154" border="0"></a><a href="http://ww.sythix.co.uk/blog/"><img height="52"
alt="" src="Sythix%20Web%20%20Aaron%20Thomas_files/sythix_03.gif" width="140"
border="0"></a>
</div>
<div id="buttons">
<img height="10" alt="" src="Sythix%20Web%20%20Aaron%20Thomas_files/sythix_04.gif"
width="682"><br />

<a href="http://www.sythix.co.uk/working/index.html">
<img id="home" height="26" alt="" src="Sythix%20Web%20%20Aaron%20Thomas_files/sythix_06.gif"
width="80" border="0" name="home"></a><a href="http://www.sythix.co.uk/working/media.html"><img
id="media" height="26" alt="" src="Sythix%20Web%20%20Aaron%20Thomas_files/sythix_08.gif"
width="80" border="0"></a><a href="http://www.sythix.co.uk/working/about.html"><img
id="about" height="26" alt="" src="Sythix%20Web%20%20Aaron%20Thomas_files/sythix_10.gif"
width="80" border="0"></a><a href="http://www.sythix.co.uk/blog/"><img id="blog"
height="26" alt="" src="Sythix%20Web%20%20Aaron%20Thomas_files/sythix_12.gif"
width="80" border="0" name="blog"></a><a href="http://www.sythix.co.uk/working/contact.php"><img
id="contact" height="26" alt="" src="Sythix%20Web%20%20Aaron%20Thomas_files/sythix_14.gif"
width="80" border="0"></a></div>

Changes to CSS:

Quote:
#buttons {
WIDTH: 682px; PADDING-TOP: 10px; HEIGHT: 26px; BACKGROUND-COLOR: #1e1e1e; height: auto; vertical-align: middle;
}
#home, #media, #about, #blog, #contact {
margin: 1px 68px 0px 8px; /* T R B L */
}
HTH
__________________
JUNE - JavaScript Framework
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-19-2007, 03:37 PM   #7 (permalink)
Inactive
 
Join Date: 04-14-07
Posts: 6
iTrader: 0 / 0%
Latest Blog:
None

Sythix is liked by many
Brilliant, thanks tha worked great .

Just one last (or at least I hope) problem. the links on the buttons seem to 'leak' away from the button itself. try hovering over a blank space to the side of a button, and it'll seem to be a link.

Again, this problem only occurs in FF.

Thanks,

Aaron.
Sythix is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-19-2007, 04:20 PM   #8 (permalink)
v7n Mentor
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 2,927
iTrader: 0 / 0%
Costin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web pro
I believe that's because you have this construction:

Quote:
<a href="http://www.sythix.co.uk/working/index.html">
<img id="home" height="26" alt="" src="Sythix%20Web%20%20Aaron%20Thomas_files/sythix_06.gif"
width="80" border="0" name="home"></a>
and maybe FF has a problem with the margin attribute, I'm not sure though...

I suggest you can try this structure:

Quote:
<ul>
<li><a href="#">Home</a></li>
</ul>
and set the background image to the li itself and a padding-left of 5px maybe.
__________________
JUNE - JavaScript Framework
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-20-2007, 02:43 AM   #9 (permalink)
Inactive
 
Join Date: 04-14-07
Posts: 6
iTrader: 0 / 0%
Latest Blog:
None

Sythix is liked by many
Quote:
Originally Posted by costin_trifan View Post
I believe that's because you have this construction:



and maybe FF has a problem with the margin attribute, I'm not sure though...

I suggest you can try this structure:



and set the background image to the li itself and a padding-left of 5px maybe.
I've tried this, but from what it seems, I can't add a background image to a li.
Sythix is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-20-2007, 06:20 AM   #10 (permalink)
v7n Mentor
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 2,927
iTrader: 0 / 0%
Costin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web pro
CSS:
Quote:
UL.MenuList {
display: inline;
list-style-type: none;
margin: 0px 0px 0px 0px; /* T R B L */
}
UL.MenuList LI.MenuListItem {
display: inline;
background-image: url('App_Images/MenuItemImage.gif');
background-position: center left !important;
background-repeat: no-repeat !important;
padding-left: 15px !important;
list-style-type: none;
font-family: Georgia, Times New Roman, Serif;
font-size: 10pt;
color: #000000;
margin: 0px 10px 0px 10px; /* T R B L */
padding: 0px 0px 0px 0px; /* T R B L */
}

HTML:
Quote:
<ul class="MenuList">
<li class="MenuListItem">Home</li>
<li class="MenuListItem">About</li>
<li class="MenuListItem">Contact</li>
</ul>
Simple as that...
__________________
JUNE - JavaScript Framework
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
next buttons ball420 Coding Forum 8 03-21-2007 12:13 PM
Click Here Buttons John Scott Marketing Forum 33 07-25-2006 11:18 AM
IE Buttons Calisonder Coding Forum 2 12-02-2005 01:42 PM
Do My Buttons Work For You? Jason Web Usability 5 05-01-2005 08:50 AM
Buttons ... Atom Graphic Design Forum 7 12-01-2003 04:24 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 04:35 AM.
© Copyright 2008 V7 Inc