insane Posted January 8, 2007 Share Posted January 8, 2007 I'm having some problems applying CSS to my website. djp :: main page ... This is what I've got so far (as far as importing .css files is concerned). It worked the first time, but adding in changes and re-uploading my .css file doesn't seem to be working. Does it usually take a while for changes to take effect? Link to comment Share on other sites More sharing options...
Cruiser Posted January 8, 2007 Share Posted January 8, 2007 I've never used @import. Always used: Either way it shouldn't take any amount of time to update after you've saved/uploaded the changes. Tried a hard F5 refresh to force a reload? :? Link to comment Share on other sites More sharing options...
insane Posted January 8, 2007 Author Share Posted January 8, 2007 I've never used @import. Always used: Either way it shouldn't take any amount of time to update after you've saved/uploaded the changes. Tried a hard F5 refresh to force a reload? :? I had that code originally. The @import was just my last attempt, and as it worked I left it. Link to comment Share on other sites More sharing options...
Metroid Posted January 8, 2007 Share Posted January 8, 2007 Try adding the css below the command. The command is really useless, I'd recommend not using it. If you still have problems, then show us the actual css coding so we can see if anything is wrong there. Protect the Light... Link to comment Share on other sites More sharing options...
____ Posted January 8, 2007 Share Posted January 8, 2007 Try adding the css below the command. The command is really useless, I'd recommend not using it. If you still have problems, then show us the actual css coding so we can see if anything is wrong there.:uhh: Post the CSS; because if you change that and suddenly the style doesn't work, you've got a problem in your CSS and it isn't going to render past the error (in most cases) or sometimes not at all; depends on browser and version. Link to comment Share on other sites More sharing options...
Mercifull Posted January 8, 2007 Share Posted January 8, 2007 Isnt @import an IE only thing? As Rick said, post the CSS. Mercifull <3 Suzi "We don't want players to be able to buy their way to success in RuneScape. If we let players start doing this, it devalues RuneScape for others. We feel your status in real-life shouldn't affect your ability to be successful in RuneScape" Jagex 01/04/01 - 02/03/12 Link to comment Share on other sites More sharing options...
____ Posted January 8, 2007 Share Posted January 8, 2007 I think it is - can't think straight atm since I'm still laughing inside at the " command is reall useless" :rofl: Link to comment Share on other sites More sharing options...
Metroid Posted January 8, 2007 Share Posted January 8, 2007 Laughing at that statement eh? The head command is mainly used for search engines to gather information about the page, things inside the head command are loaded first. And the head command can cause errors sometimes (certain parts of the page won't load, or only what is inside the head command will), not having the head command will never cause errors that can only be fixed by adding it. Thus it's just about useless. Basically, head commands are used when you want to add META tags to let your site get more traffic from searches, or if you want certain data to load before everything else. That is about it. Protect the Light... Link to comment Share on other sites More sharing options...
insane Posted January 8, 2007 Author Share Posted January 8, 2007 Okay I changed the .css import back to And my .css is as follows; body { font-family: "Times New Roman", Times, serif; } h1 { font-size: 13pt; text-align: center; } h2 { font-size: 10pt; text-align: center; } h5 { font-size: 9pt; text-align: left; } a:link { text-decoration: none; color: sienna; margin-left: 1px; } a:visited { text-decoration: none; color: sienna; } a:active { text-decoration: none; } ul { text-align: left; } li { text-align: left; } It all seems to be working except for the li/ul now. The alignment is centered. Link to comment Share on other sites More sharing options...
Cruiser Posted January 9, 2007 Share Posted January 9, 2007 Everything in the CSS looks good as far as I can tell. I'm no help the ul/li tags since I've never used them for anything beyond learning what they did. :? ------------------------ Basically, head commands are used when you want to add META tags to let your site get more traffic from searches, or if you want certain data to load before everything else. That is about it. Which are things just about every serious website on the planet wants done. Calling it useless then telling us exactly what every website worth it's content constantly uses it for kinda voids your argument. Link to comment Share on other sites More sharing options...
Darrel104 Posted January 9, 2007 Share Posted January 9, 2007 maybe you could post the website so we can know what you mean and you could try margin:auto; or the margin left/right crap if dont want the short hand proporties Link to comment Share on other sites More sharing options...
insane Posted January 9, 2007 Author Share Posted January 9, 2007 They're left centred now :? This is ridiculous, I guess it just takes my webserver a few minutes to make changes to styles. Link to comment Share on other sites More sharing options...
Darrel104 Posted January 9, 2007 Share Posted January 9, 2007 I think you need to refresh your css as when you just refresh your webpage it eats a css cookie :lol: . Link to comment Share on other sites More sharing options...
insane Posted January 9, 2007 Author Share Posted January 9, 2007 I think you need to refresh your css as when you just refresh your webpage it eats a css cookie :lol: . Okay, if this is a joke, then everyone make fun, I'm new at this :P. There isn't a way to refresh your .css other than re-uploading it, is there? Link to comment Share on other sites More sharing options...
Darrel104 Posted January 9, 2007 Share Posted January 9, 2007 Well i dont really like using tip.it as aim :lol: but you should not upload it untill you are done(inless you use something like freewebs) If you are not using a editor then just open the .html document up with a browser. If you are using freewebs then just go to your css page then click refresh. If you dont like using dreamweaver or frontpage then i suggest you get notepad++ it supports about every language you can think of and you dont get pissed off with the sloppy code that those other programs leave behind. Anyway you really need to post your webpage or just post your html and css (i know you already have posted your css) and give a bit of information so people that are experts at css/html can help you. As the css does not seem to have any errors under my eye, just logical stuff. Always validate your css before posting btw. click here keep in mind text-align is for text and div's are to get your pos of elements right 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