Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,583 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,936 people online right now. Registration is fast and FREE... Join Now!




unknown issue

 
Reply to this topicStart new topic

unknown issue

musya
2 Oct, 2008 - 07:10 PM
Post #1

D.I.C Regular
Group Icon

Joined: 25 Apr, 2007
Posts: 291



Thanked: 1 times
Dream Kudos: 50
My Contributions
i am havning usiues with the border displaying on the table something funky is going on here is my code
html

<?php defined( "_VALID_MOS" ) or die( "Direct Access to this location is not allowed." );?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<?php if ( $my->id ) { initEditor(); } ?>
<meta http-equiv="Content-Type" content="text/html;><?php echo _ISO; ?>" />
<?php mosShowHead(); ?>
<?php echo "<link rel=\"stylesheet\" href=\"$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/css/template_css.css\" type=\"text/css\"/>" ; ?><?php echo "<link rel=\"shortcut icon\" href=\"$GLOBALS[mosConfig_live_site]/images/favicon.ico\" />" ; ?>
</head>

<body style="background-image: url(<? echo "$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/images/bg.jpg"; ?>);background-repeat: repeat-x; background-color: #999966;">

<div width="791" height="35" class="main_menu" align="center">
<?php mosLoadModules ( 'header' ); ?>
</div>

<table cellspacing="0" cellpadding="0" border="0" align="center" style="width:791px; border:10px;">
<tr>
<td colspan="2" width="601" height="214">
<div class="top"><?php mosLoadModules ( 'top' ); ?><div>
</td>
<td width="190">
<div class="user1"><?php mosLoadModules ( 'user1' ); ?></div>
</td>
</tr>
<tr>
<td colspan="3" width="100%" height="26" style="background-image: url(<? echo "$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/images/breadcrumbs_bg.jpg"; ?>);">
<?php mospathway(); ?>
</td>
</tr>
<tr>
<td width="564">
<div class="body_cell"><?php mosMainBody(); ?></div>
</td>
<td width="37" style="background-image: url(<? echo "$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/images/body_right_sh.png" ?>); background-repeat: repeat-y;">
<?//<img width="37" height="100%" src="" vspace="0" hspace="0">?>
</td>
<td width="190">
<div class="user2"><?php mosLoadModules ( 'user2' ); ?></div>
<div class="user3"><?php mosLoadModules ( 'user3' ); ?></div>
</td>
</tr>
</table>

</body>
</html>


also i apply css to .main_menu a or .main_menu .mainlevel (mainlevel is a class defined for each <a> in the main menu
and this code makes it break each link into seperate lines does anybody know why?
css

background-image: url('templates/wlcc_creation/images/button_bg.png');
background-repeat: no-repeat;
display: block;
width: 81px;
height: 35px;
text-decoration: none;



any help would be greatly appreciated, thank you guys.
User is offlineProfile CardPM
+Quote Post

William_Wilson
RE: Unknown Issue
2 Oct, 2008 - 07:23 PM
Post #2

lost in compilation
Group Icon

Joined: 23 Dec, 2005
Posts: 3,995



Thanked: 16 times
Dream Kudos: 3275
Expert In: Java, C, Javascript

My Contributions
border is usually defined with 3 parameters: border:solid 10px #000000; or something like that.

If you could link us to the output or show a screenshot of what's wrong it would help, there's a lot of independent php code.

This post has been edited by William_Wilson: 2 Oct, 2008 - 07:23 PM
User is offlineProfile CardPM
+Quote Post

musya
RE: Unknown Issue
2 Oct, 2008 - 07:30 PM
Post #3

D.I.C Regular
Group Icon

Joined: 25 Apr, 2007
Posts: 291



Thanked: 1 times
Dream Kudos: 50
My Contributions
yea i figured the border out, it was silly i just spaced it, but thanks, here is a link to it http://worldlifecc.imagelightstudios.com/ see the menu on top its listiing down, without that display:block in the css it lines up but still doesnt show the background image, this menu in joomla is a bit hard to work with in its design, so any help would be greatly appreciated, oh and i get a border of space under the rotatr placeholder and the image next to it, does anybody know why? i set vspace and hspace and border equal to 0. thank you very much guys!

This post has been edited by musya: 2 Oct, 2008 - 07:31 PM
User is offlineProfile CardPM
+Quote Post

William_Wilson
RE: Unknown Issue
2 Oct, 2008 - 07:39 PM
Post #4

lost in compilation
Group Icon

Joined: 23 Dec, 2005
Posts: 3,995



Thanked: 16 times
Dream Kudos: 3275
Expert In: Java, C, Javascript

My Contributions
you have the background image set to the a tag, perhaps it should be on the td, table or div tag? i'm not sure what you are planning to do with it. Based on what the image looks like td is likely what you want, but you may have to move it to a class or id, to prevent applying it all td elements.

This post has been edited by William_Wilson: 2 Oct, 2008 - 07:40 PM
User is offlineProfile CardPM
+Quote Post

musya
RE: Unknown Issue
2 Oct, 2008 - 07:43 PM
Post #5

D.I.C Regular
Group Icon

Joined: 25 Apr, 2007
Posts: 291



Thanked: 1 times
Dream Kudos: 50
My Contributions
thats my problem with that menu, all the links, <a> tags, are inside of one td, we did it once at work and i havent been able to get it since, so thats why im here asking for some advice maybe.... thanks for your help though.
User is offlineProfile CardPM
+Quote Post

musya
RE: Unknown Issue
3 Oct, 2008 - 10:27 AM
Post #6

D.I.C Regular
Group Icon

Joined: 25 Apr, 2007
Posts: 291



Thanked: 1 times
Dream Kudos: 50
My Contributions
Alright so i got it to display the image, now the only problem though is that it only show the whole image if i do display: block, but then it does breaks after each element, now if i don't do display:block then it does an inline just like i want it too, but the image is cut off where the text ends, and recommendation?
http://worldlifecc.imagelightstudios.com

if it changes while your on their, im just working on it still, and thank you for any help, greatly appreciated! biggrin.gif
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/3/08 12:42AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month