generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: [HTML/CSS] Custom class not taking effect

Previous Thread :: Next Thread 
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
11 Jul 2012 02:01 PM
I have a navigation bar set up for a webpage I'm creating and my CSS isn't taking effect on to the elements with the class of CustomButton. Can anyone see the problem? I took of the HTML tags because Roblox won't accept them in posts.

button class="CustomButton" id="homeTab" onclick="switchContent('home')" Home /button


button.CustomButton {
background-image: url("img/button_normal.png");
}
button.CustomButton:hover {
background-image: url("img/button_up");
}
button.CustomButton:active {
background-image: url("img/button_down.png");
}
Report Abuse
trappingnoobs is not online. trappingnoobs
Joined: 05 Oct 2008
Total Posts: 19100
11 Jul 2012 02:06 PM
no .png on second one

and LRN2SPRITESHEET PLEASE.
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
11 Jul 2012 02:13 PM
Spritesheet? And I fixed that, but that wasn't the problem
Report Abuse
trappingnoobs is not online. trappingnoobs
Joined: 05 Oct 2008
Total Posts: 19100
11 Jul 2012 02:14 PM
"Spritesheet?"

why do people develop websites without even knowing the basics of the markup languages they are using?
Report Abuse
Garnished is not online. Garnished
Joined: 09 Apr 2012
Total Posts: 12695
11 Jul 2012 07:30 PM
^
w3schools
Report Abuse
WildSurvival is not online. WildSurvival
Joined: 02 Mar 2009
Total Posts: 511
11 Jul 2012 09:22 PM
^ no <:O

Spritesheet is where you clump the images into one image and use background position to position the image in the div.

I have had this problem before I think. Did this happen to be ran in chrome? And have you ran it in another browser?
Report Abuse
WildSurvival is not online. WildSurvival
Joined: 02 Mar 2009
Total Posts: 511
11 Jul 2012 09:24 PM
Also, you do have height/width elements on the div tags right?
Report Abuse
WildSurvival is not online. WildSurvival
Joined: 02 Mar 2009
Total Posts: 511
11 Jul 2012 09:25 PM
Oh, it might be because it is a button. I would just use a div tag.
Report Abuse
Garnished is not online. Garnished
Joined: 09 Apr 2012
Total Posts: 12695
11 Jul 2012 09:51 PM
w3schools is a website :P
Report Abuse
Vitouliss14 is not online. Vitouliss14
Joined: 18 Mar 2009
Total Posts: 7918
11 Jul 2012 09:55 PM
@Garnished

Yep...And in my humble opinion it's only good for looking up some tags, property's,etc. you forgot about.
Report Abuse
Garnished is not online. Garnished
Joined: 09 Apr 2012
Total Posts: 12695
11 Jul 2012 09:55 PM
Yeah.
The finally added the HTML5 tags.
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
12 Jul 2012 04:27 PM
@WildSurvial; I'm running it in Firefox. So using a div would work?
Report Abuse
trappingnoobs is not online. trappingnoobs
Joined: 05 Oct 2008
Total Posts: 19100
13 Jul 2012 02:33 AM
"I'm running it in Firefox. So using a div would work?"

When you only care about your browser displaying it right it's a sign you should stop developing for the web. People who do this are ruining the web and making it a maze of compatibilities.
Report Abuse
WildSurvival is not online. WildSurvival
Joined: 02 Mar 2009
Total Posts: 511
13 Jul 2012 02:38 AM
Well, what im talking about a caching issue for chrome, not for the browser compatibility. There are alot of factors that can effect this. We would have to see more of your code to find the problem, im pretty sure.
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
13 Jul 2012 12:36 PM
@trappingnoobs; I'm not only making it for Firefox. I'm saying, that's just what I've been running it in when I test it.

@wildsurvival; So what, you need my whole HTML page?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image