ilikephp Posted June 8, 2008 Share Posted June 8, 2008 hii, when I am checking my website on my pc using apache coz all my webpages are .php everything is fine, BUT when I uploaded my website, the problem is with the style.css coz the lines height changed, when I click on a link, the color is not changing ??? :'( CAN u help plzzzzz Quote Link to comment Share on other sites More sharing options...
webent Posted June 8, 2008 Share Posted June 8, 2008 Not trying to be mean, but I would suggest doing some research here http://www.w3schools.com/css/ for now though, I'll suggest taking a look at your a:hover css code. Quote Link to comment Share on other sites More sharing options...
ilikephp Posted June 8, 2008 Author Share Posted June 8, 2008 Coz I uploaded my website before making some modifications, and I did not face this problem Quote Link to comment Share on other sites More sharing options...
webent Posted June 8, 2008 Share Posted June 8, 2008 Did you check your a:hover {color:#ff0;} code? Was that it? Quote Link to comment Share on other sites More sharing options...
ilikephp Posted June 8, 2008 Author Share Posted June 8, 2008 this is the whole css style: p { margin: 0; padding: 0; } a { font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #990000; text-decoration: none; font-weight: bold } a:hover { font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #990000; text-decoration: underline; font-weight: bold } .meniuri { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-style: normal; font-weight: bold; color: #FFB400; text-decoration: none; } .meniurimici { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; font-style: normal; font-weight: normal; color: #000000; text-decoration: none; } .copyright { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-style: normal; font-weight: normal; color: #FFFFFF; text-decoration: none; } .text { font-family:Arial, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-weight: normal; color: #555555; text-decoration: none; line-height: 25px; text-indent: 1px; } .subsubtitlu { font-family: Arial, Helvetica, sans-serif; font-size: 18px; font-style: normal; font-weight: bold; color: #555555; text-decoration: none; } .subtitlu { font-family: Arial, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-weight: bold; color: #ABB2CF; text-decoration: none; line-height:20px; } .text1 { font-family:Arial, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-weight: normal; color: #FFC600; text-decoration: none; line-height:25px; text-indent: 1px; } .rearmore { font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-style: normal; font-weight: bold; color: #841414; text-decoration: none; } .rearmoref { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; font-weight: bold; color: #841414; text-decoration: none; } .readmore1 { font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-style: normal; font-weight: bold; color: #FFFFFF; text-decoration: none; } .subtitlu1 { font-family: Arial, Helvetica, sans-serif; font-size: 18px; font-style: normal; font-weight: normal; color: #024E90; text-decoration: none; } .textcasuta { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; line-height: normal; font-weight: normal; color: #FFFFFF; text-decoration: none; } Quote Link to comment Share on other sites More sharing options...
webent Posted June 8, 2008 Share Posted June 8, 2008 hii, when I am checking my website on my pc using apache coz all my webpages are .php everything is fine, BUT when I uploaded my website, the problem is with the style.css coz the lines height changed, when I click on a link, the color is not changing ??? :'( CAN u help plzzzzz As far as the link color not changing, your a color and your a:hover color are the same in your css file... now as far as changing size, are you sure that's it just not because you making it underline the link when it is hovered over? Quote Link to comment Share on other sites More sharing options...
ilikephp Posted June 8, 2008 Author Share Posted June 8, 2008 on my pc they are working well. For example: when they are clicked, I see the line only, but now when I uploaded it on the server, the links are like without a css style, also the paragraphs looses their line height, Quote Link to comment Share on other sites More sharing options...
webent Posted June 8, 2008 Share Posted June 8, 2008 Are you absolutely sure about the path you are using to call your style.css page and that the style.css page is where you think it is? Type in the path of the style.css page in your browser and see if it tries to download... one easy way to make sure it is where you think it is... and use that absolute path in your css page call... Quote Link to comment Share on other sites More sharing options...
ilikephp Posted June 8, 2008 Author Share Posted June 8, 2008 I tried: www.mysite.org/styles/styles.css and it opened Quote Link to comment Share on other sites More sharing options...
webent Posted June 8, 2008 Share Posted June 8, 2008 And that's the exact path you're using to call it? <link rel="stylesheet" type="text/css" href="www.mysite.org/styles/styles.css" /> Quote Link to comment Share on other sites More sharing options...
ilikephp Posted June 8, 2008 Author Share Posted June 8, 2008 I noticed that the older css style is opening that is before the modification(without a:hover...) But even, I delete it and I uploaded the new one :| why it is still opening? Quote Link to comment Share on other sites More sharing options...
webent Posted June 8, 2008 Share Posted June 8, 2008 Did you try refreshing your page or possibly clearing your cache? Quote Link to comment Share on other sites More sharing options...
ilikephp Posted June 8, 2008 Author Share Posted June 8, 2008 yeah sure I tried them. 1- when I entered the ftp and downloaded the file: I have the correct one 2- when I type: www.site.org/styles/styles.css the wrong one is displayed ??? Quote Link to comment Share on other sites More sharing options...
ilikephp Posted June 8, 2008 Author Share Posted June 8, 2008 Can I clear the cache on the ftp server? Quote Link to comment Share on other sites More sharing options...
webent Posted June 8, 2008 Share Posted June 8, 2008 You can try refreshing it... Other than that, I'm stumped, you can't have two different files with the exact same name and file extension in the exact same place at the exact same time... LOL... At least not in my own private universe... I would delete all the style.css files in that location,... then make sure your old one is deleted from your pc, double check to make sure that you are really about to upload the new one, then upload it... refresh your page and if the Gods are willing, Voila! Quote Link to comment Share on other sites More sharing options...
ilikephp Posted June 8, 2008 Author Share Posted June 8, 2008 u know, I deleted the css file and folder, and I put www.site/styles/styles.css I received the wrong file again ??? and the cache is cleared and refreshed.. I think this is from the server right? Coz the web page is still opening with the older ss style that was deleted Quote Link to comment Share on other sites More sharing options...
webent Posted June 8, 2008 Share Posted June 8, 2008 Hey, why not try this,... put the style.css in the same directory as the calling page and change the url in which you call the style.css page to match... See if anything changes... Quote Link to comment Share on other sites More sharing options...
ilikephp Posted June 8, 2008 Author Share Posted June 8, 2008 I have a lot of pages, do I need to change the URL in all of them? is there an easy way? Quote Link to comment Share on other sites More sharing options...
webent Posted June 8, 2008 Share Posted June 8, 2008 Just try it in one, just to make sure that it is working... Just for future reference though, if you would have to change it in many pages, I would suggest using a header.inc file in your pages... Quote Link to comment Share on other sites More sharing options...
Sulman Posted June 8, 2008 Share Posted June 8, 2008 I have come accross browsers caching css before now. When you browse to www.site.org/styles/styles.css make sure you click Ctrl+F5 (IE & FF). This will force the browser to go back to the server to get the file again. Quote Link to comment Share on other sites More sharing options...
ilikephp Posted June 9, 2008 Author Share Posted June 9, 2008 yeah I always press ctrl+F5, The first step I did is changing the name of the folder to /styles1 and then I change it back to /styles so it works But why I always have this kind of problem? sometimes I have picture for example: computer.jpg when I decide to change the picture with a different one with the same name, I still receive the old pic. U know why? Thx... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.