June 28, 201016 yr So I need to change the XHTML template I have on each page of my site to CSS so I can easily make changes to it and it will change every page. Whats the easiest way to go about this?
June 28, 201016 yr Well, I don't know what code you have so far, but the basics of it is, you need to give the elements you want to be able to change either an 'id' if you want to apply the styles to only that element, or a 'class' if you want to apply the styles to that plus other elements. You can then use CSS either in an external .css file or included in the page to apply your styles.
June 28, 201016 yr As above, without the code is hard but place areas of the page into 'divs' these are then referred to in the CSS and you change the attributes to whatever you want to. As stated you can either have the CSS in the head of the page, inline styles (eg <p style="color: #ff0000;">) or you have a seperate .css file and link it in the head of the pages. Here's a tutorial for you. CSS Tutorial
June 28, 201016 yr Author I have a Style sheet set up already but is there no easier way to go about it? Here is my site: www.rapidcontrollers.co.uk
June 28, 201016 yr Author In a word? Nope. Dam. Ok, so I need to ID tag everything? Anyone want to do it for me? I'll send them £20 with paypal..
June 28, 201016 yr It's not just a case of assigning ID's to everything. ID's can only be used once in a document. Classes can be used multiple times. But, looking at your code, the lack of external style sheets is the least of your problems mate. I'd look at re-writing the code too, get rid of the tables and the dodgy JS image replacement for the navigation. And get rid of the image-for-body-text, and write the content. Anyone browsing your site with images off, or with js disabled is in for a shock, not to mention the fact that search engines have got NOTHING to index! Just my opinion though.
June 29, 201016 yr Hey, Unfortunately its probably going to have to be done from scratch. Theres hardly any content there at all as it mostly consists of images. Search engines are unable to "read" images, so your rankings are going to be low. On the brightside, it is a relatively basic site in terms of layout, so it wouldn't really take THAT much effort to turn it all into XHTML and CSS based text. Kyle
June 29, 201016 yr Author Well this is the first site I have ever made and how I learnt CSS and XHTML so thats why its abit crappy. I only made the front page a giant image because I was rushed for time, and I will get around to sorting that out soon, I hope. How much would you guys say it would be for someone to make something near enough exactly the same but with a decent external style sheet and etc (just a template, i'lll add all the content)? Thanks for all your help by the way
July 15, 201016 yr Author £300 to £500 mate. Worked with a top web developer/designer the other day on my work exp and he taught me how to do it and it took me little over an hour to do my site on my own in CSS with Divs. Would you seriously charge that amount?!
Create an account or sign in to comment