Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-12-2007, 01:22 PM
johnstires johnstires is offline
 
Join Date: Mar 2006
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default CSS Problem

Can someone help me figure out why this button works in FF but not in IE...

button: VIDEO - take yoga now, for free!

http://www.prenatalyogacenter.com/cm....php?page=test

Here is the code and css I am using.

Code:

Code:
<tr>
<td class="$getbgrow">
<div class="pycbutton"><a href="http://www.prenatalyogacenter.com"><h2>VIDEO - take yoga now, for free!</h2></a></div>
<td>
<tr>
CSS

Code:
.pycbutton {
height:32px;
width:390px;
background:url(http://www.prenatalyogacenter.com/forums/images/buttons/pyc_button.gif) no-repeat scroll 0%
}

.pycbutton h2 {
height:32px;
width:390px;
background-repeat:no-repeat;
font-size:14px;
font-weight:bold;
letter-spacing:normal;
line-height:32px;
padding-left:10px;
position:relative;
color:#9766C3; 
}
Reply With Quote
  #2  
Old 05-12-2007, 03:08 PM
nexialys
Guest
 
Posts: n/a
Default

can you point what is not working exactly?!

and actually, to make it XHTML compliant, the <a have to be inside the <h2, not the opposite!
Reply With Quote
  #3  
Old 05-12-2007, 03:34 PM
RedTyger's Avatar
RedTyger RedTyger is offline
 
Join Date: Nov 2006
Location: UK
Posts: 1,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your background CSS is pretty badly borked, don't know if that'd be catastropic but it's not good form.

Replace:
background:url(http://www.prenatalyogacenter.com/fo...pyc_button.gif) no-repeat scroll 0%

With:
Code:
background:transparent url(http://www.prenatalyogacenter.com/forums/images/buttons/pyc_button.gif) center center no-repeat;

Note I added the missing closing ; as well.
Reply With Quote
  #4  
Old 05-12-2007, 04:09 PM
nexialys
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by RedTyger View Post
Note I added the missing closing ; as well.
the last element of a css entity does not require a closing... even on W3C they don't apply it... anyway it is always cleaner to add everything into place, so you never miss a thing..
Reply With Quote
  #5  
Old 05-12-2007, 05:40 PM
johnstires johnstires is offline
 
Join Date: Mar 2006
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RedTyger View Post

Replace:
background:url(http://www.prenatalyogacenter.com/fo...pyc_button.gif) no-repeat scroll 0%

With:
Code:
background:transparent url(http://www.prenatalyogacenter.com/forums/images/buttons/pyc_button.gif) center center no-repeat;

Note I added the missing closing ; as well.
Thanks for the responses. As you can see I'm a bit of a hack. Your fix did not work. SHould center be there twice?

I use firebug addon to help troubleshoot css problems in FF. What can I use to help troubleshoot in IE. I wish more people used FF...
Reply With Quote
  #6  
Old 05-12-2007, 06:32 PM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see 2 links with "VIDEO - take yoga now, for free!" ...

the top link has some javascript in the following form:
Code:
<a href="javascript<b></b>:var target=window.open('http://link.brightcove.com/services/player/bcpid823619092','PrenatalYogaAlleviatingBackPain',  'scrollbars=no,resizable=no,status=no,width=510,he  ight=610');">
notice the <b></b>? .. it shouldn't be there

the second link works in FF and IE

I recommend closing all tags .. otherwise, your html may not degrade well in other browsers. It's best to play it safe.

FYI: Over 50% of vbulletin.org visitors use FireFox.
Reply With Quote
  #7  
Old 05-12-2007, 06:33 PM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

By the way, Firebug is an excellent tool. :up: I use it everyday.

I highly recommend it as a must-have tool for web developers.
Reply With Quote
  #8  
Old 05-12-2007, 08:52 PM
johnstires johnstires is offline
 
Join Date: Mar 2006
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Princeton View Post
I see 2 links with "VIDEO - take yoga now, for free!" ...

the top link has some javascript in the following form:
Code:
<a href="javascript<b></b>:var target=window.open('http://link.brightcove.com/services/player/bcpid823619092','PrenatalYogaAlleviatingBackPain',  'scrollbars=no,resizable=no,status=no,width=510,he  ight=610');">
notice the <b></b>? .. it shouldn't be there

the second link works in FF and IE

I recommend closing all tags .. otherwise, your html may not degrade well in other browsers. It's best to play it safe.

FYI: Over 50% of vbulletin.org visitors use FireFox.
I have 2 links in there as it is just a test page. That's wierd bold tags are being added there, probably because I placed the brightcove script inside bbcode. I'll make it a template.
Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:10 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06720 seconds
  • Memory Usage 2,232KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (6)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (6)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete