Help - Search - Members - Calendar
Full Version: Help with layout
Forums > Resource Center > Webmasters' Corner > Webmasters' Corner Resolved Topics
flyawayx
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
thumbsup.gif

By the way, I'm not quite sure if this is in the right category, sorry if I got it wrong.
tokyo-rose
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. :)
flyawayx
Ok, sorry about that!
1angel3
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>).
flyawayx
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!
freeflow
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
1angel3
You can take it out. Or just recode it. Can you code? Can I see your code?
aesthetic
Go with php. Also are you using any blogging program such as wordpress or cutenews?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.