Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Need to sort my template out..

Featured Replies

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?

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.

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

  • 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..

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.

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

  • 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 :)

  • 3 weeks later...
  • 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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.