DeathsAngel Posted May 14, 2006 Share Posted May 14, 2006 div.centrale { color: #FFFFFF; position: absolute; top: 10%; padding-top: 1%; width: 100%; text-align: center;} In my JSP file I put the <link> thing for the CSS to join and it works but only the color: #FFFFFF doesn't work.The position, top, width etc. works but not the color.Can you tell me why?Thanks Link to comment Share on other sites More sharing options...
scott100 Posted May 14, 2006 Share Posted May 14, 2006 It worked ok for me, white centered etc? <head><style>body{background-color:black}div.centrale { color: #FFFFFF; position: absolute; top: 10%; padding-top: 1%; width: 100%; text-align: center;}</style></head><body><div class="centrale">Hello</div></body> Link to comment Share on other sites More sharing options...
DeathsAngel Posted May 14, 2006 Author Share Posted May 14, 2006 Did you tried it in HTML or JSP? Link to comment Share on other sites More sharing options...
scott100 Posted May 14, 2006 Share Posted May 14, 2006 Did you tried it in HTML or JSP?<{POST_SNAPBACK}> The code above is html I don't have JSP though so i can't test it with that. Link to comment Share on other sites More sharing options...
DeathsAngel Posted May 14, 2006 Author Share Posted May 14, 2006 JSP have HTML inside, there is not much difference except it's used for some server stuff and permit includes command.Well thanks anyway I'll try to find out why Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now