Help with layout |
![]() ![]() |
Help with layout |
Nov 17 2007, 10:41 AM
Post
#1
|
|
|
Newbie ![]() Group: Member Posts: 4 Joined: Nov 2007 Member No: 591,732 |
Hey everyone, I'd really appreciate your help with something.
I'm trying to work with a div/blog layout... I'm not quite sure what it's called, to be honest. Take a look at http://sprinkle-sparkle.co.uk -- it's one like that. However, I've come upon a problem. It seems that for every new page I need to insert the same CSS/sidebar code. While this is annoying, I'll be able to deal. The trouble, however, is what if I want to add a new page to the sidebar? Does this mean I'll have to update each and every one of my pages? This doesn't seem very likely, because so many people use this kind of layout. Is there any frame targeting such thing as there is in frames and iframes? Also, is there a known CSS shortcut? Thanks so much everyone! <3 By the way, I'm not quite sure if this is in the right category, sorry if I got it wrong.
Reason for edit: Posts Merged - Mike
|
|
|
|
Nov 17 2007, 11:35 AM
Post
#2
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Head Staff Posts: 18,173 Joined: Mar 2005 Member No: 108,478 |
I hope someone else can help you, but I'm just here to say please don't double-post, and use the Edit button instead. :)
|
|
|
|
Nov 17 2007, 11:38 AM
Post
#3
|
|
|
Newbie ![]() Group: Member Posts: 4 Joined: Nov 2007 Member No: 591,732 |
Ok, sorry about that!
|
|
|
|
Nov 17 2007, 12:54 PM
Post
#4
|
|
![]() Naomi loves you. Y'all may call me NaNa ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 2,925 Joined: Jun 2006 Member No: 427,774 |
For your CSS. You can insert your CSS in Notpad a save it as blahblah.css. Go to your web host and upload your CSS file there.
Your CSS file should have a URL for it. Insert where it say UrlHere. Use this code CODE <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <link rel="stylesheet" href="UrlHere.css" type="text/css" /> <title>Site title</title> </head> You may replace your DocType to fit your site best. If you're having trouble the Url for your css file then it should look like this: http://www.yourdomain.com/blahblah.css Now you only have to edit one page(which would be your CSS file) for your CSS and every page will change. Once you upload your CSS file, you don't have to upload it anymore. Just log on to your host and update it from there. That would make editing your CSS much easier. Now for every page, you'll just have to update them everytime. Unless you have ifame/frame. But with iframe/frame, everyone browser doesn't work well with iframe/frame, and it makes it hard for someone to bookmark your pages easier. There is a lot of flaws with iframe/frame and you have to know how to use them properly. Anymore Question? Just PM me. Edit//// Oh one more thing...When you place your CSS in you Notpad document. Do not add the tags (i.e <style>, </style>). |
|
|
|
Nov 17 2007, 01:46 PM
Post
#5
|
|
|
Newbie ![]() Group: Member Posts: 4 Joined: Nov 2007 Member No: 591,732 |
Thank you! Actually, turns out in this type of layout the CSS is honestly built in, part of the layout... in other words, it isn't really CSS. It brings me back to my original problem, with the targeting. But thanks anyway!
|
|
|
|
Nov 17 2007, 02:40 PM
Post
#6
|
|
|
t-t-t-toyaaa ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 19,821 Joined: Apr 2004 Member No: 11,270 |
Php includes would make it a lot easier. That way you can just include the sidebar in each file. Then when you want to add a new link you only update one file.
http://pootato.org/tutorials/php/inclusion/ http://pootato.org/category/tutorials/php/ http://pixelfx.org/tuts/php/phpincludes.html |
|
|
|
Nov 17 2007, 02:41 PM
Post
#7
|
|
![]() Naomi loves you. Y'all may call me NaNa ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 2,925 Joined: Jun 2006 Member No: 427,774 |
You can take it out. Or just recode it. Can you code? Can I see your code?
|
|
|
|
Nov 17 2007, 06:06 PM
Post
#8
|
|
![]() Lover ![]() ![]() ![]() Group: Member Posts: 77 Joined: Mar 2005 Member No: 117,184 |
Go with php. Also are you using any blogging program such as wordpress or cutenews?
|
|
|
|
![]() ![]() |