Jump to content
MakeWebGames

Bars Problem


MNG

Recommended Posts

I am having a problem with my bars they don't show up.

 

Screenshot Of Problem

709636def3b0b75e786fe5db45cb34b5.png

As you can see the bars do not show here's the header and css. Hopefully someone can help fix this as this problem is killing me.

 

Header File

709636def3b0b75e786fe5db45cb34b5.png.db9d778a76045346278ff75848aac4ca.png

Edited by MNG
Link to comment
Share on other sites

The problems looks like its your mark-up, it seem like the design side of stuff is a bit of a mess.

Everything seems to be "displaying" but just not in the right places.

I think if you had a clean up of your code it would fix the problem.

I can see lots of tags that open but do not close.

Run your index page through http://validator.w3.org/ and hopefully that will give you a place to start.

Link to comment
Share on other sites

Okay, let me reiterate... explore.css line 714.

 

.bar_a {
width: 150px;
height: 12px;
border: 0px solid #3e3e3e;
background-image: url(../images/userbarsempty.png);
}

 

The background image you have set does not exist. Even when it does display it won't display correctly because of your markup.

 

.bar_a {
width: 150px;
height: 12px;
background-image: url(/bar_a.png);
}

 

This does exist and is in style_score.css, so you're overriding the image that exists with one that does not. I suggest uploading an image at that URI, at least you'll have something to look at.

* This can all be seen using Chromes development tools or Firefox development tools

Link to comment
Share on other sites

As everyone else has already said, your image doesn't exist. If you use the Chrome inspector you can see that the following image doesn't exist.

http://www.mafiaomerta.com/images/userbarsempty.png

It looks to me like you've got two of the same class .bar_a in your CSS and I'd suggest combining them together and choosing one of the backgrounds.

Also the whole of your statistics box is floated, so you'll need to float your bars as well. Delete any reference to .bar_a in your CSS and replace it with the following:

.bar_a {   
   background-image: url('/bar_a.png');

   width: 150px;
   height: 12px;

   border: 0px solid #3e3e3e;

   float: left;
}

Read up about floats to get a better understanding:

http://www.w3schools.com/css/css_float.asp

By doing this you should achieve the following result

jjYGYkU.png

Edited by Dave Macaulay
Link to comment
Share on other sites

As everyone else has already said, your image doesn't exist. If you use the Chrome inspector you can see that the following image doesn't exist.

http://www.mafiaomerta.com/images/userbarsempty.png

It looks to me like you've got two of the same class .bar_a in your CSS and I'd suggest combining them together and choosing one of the backgrounds.

Also the whole of your statistics box is floated, so you'll need to float your bars as well. Delete any reference to .bar_a in your CSS and replace it with the following:

 

.bar_a {   
   background-image: url('/bar_a.png');

   width: 150px;
   height: 12px;

   border: 0px solid #3e3e3e;

   float: left;
}

 

Read up about floats to get a better understanding:

http://www.w3schools.com/css/css_float.asp

By doing this you should achieve the following result

jjYGYkU.png

Thanks, Dave

I got them to appear.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...