473,395 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Simple way to avoid repetative work

Simple newb question here.

Ok, so I am making a simple site. I wrote some HTML and made a CSS for it.

Now, I know the point of the style sheets is to save me work re-doing all of the styles for each page.

Now heres my newb problem. If I change the HTML for the page I am starting with (lets say index) how do I keep myself from having to update every page?

Some simple suggestions for me to look into would be awesome. I can look it up.

I have a few ideas and I am sure I could figure something out but I doubt it would be the best way.

Feel free to include the following in your responses: "LAWL n00b","HTML PWNS j0" etc al.
May 29 '08 #1
4 1367
hsriat
1,654 Expert 1GB
When you change HTML in it, what would you change?

If you are converting a table layout to div, or some major change, then of course you would need to do more work.

But if your layout is already done, then it won't be a big problem if you would change HTML.

Define styles for classes or simply tags, which would be used in many pages.

eg. for "a" tag, once you define its style, you won't need to look back to it before making any HTML change.

I think you are defining style by ids and some of your elements are not same throughout the site. If that's the case, for few elements which are not repeated in other pages of the site, you can make a separate CSS for that particular page only.
May 29 '08 #2
Mostly I meant something like a link side bar. The links are all small divs in one large div going up the side.

If add/remove a link... it could be alot of work to change them all!

I somewhat remember that one can have two or more different code segments load in one window (like some kind of partition). should I make the links for example their own page?

Am I right that I can make a page display in a div like this then I could make the parts that are common among all the pages actually pages in themselves contained in div in a main page?
May 29 '08 #3
gits
5,390 Expert Mod 4TB
you may use frames/iframes for such purposes ... they have a src attrib and so may load a html-page as their content :)

kind regards
May 29 '08 #4
Thanks! I will look into that :)
May 30 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

27
by: Brian Sabbey | last post by:
Here is a first draft of a PEP for thunks. Please let me know what you think. If there is a positive response, I will create a real PEP. I made a patch that implements thunks as described here....
6
by: Pete | last post by:
Hello everybody -- Forgive my multi-posting my question. I posted first to ciwah, but I learned that ciwas is the better group for this CSS question. The problem has me stopped. The page: ...
7
by: Erik Borgstr?m | last post by:
Hi, I simply want to use simple matrices of ints or doubles in C++ and I want all the good: 1) be able to use double-index, e.g. m 2) not have to use pointers at all 3) do it fast I know...
6
by: KevinD | last post by:
assumption: I am new to C and old to COBOL I have been reading a lot (self teaching) but something is not sinking in with respect to reading a simple file - one record at a time. Using C, I am...
6
by: Ben | last post by:
I'm designing a fairly involved database system. As part fo the process, I use the \i command a great deal. I set up fairly involved queries, sometimes simply for the purpose of shortening column...
30
by: Brian Elmegaard | last post by:
Hi, I am struggling to understand how to really appreciate object orientation. I guess these are FAQ's but I have not been able to find the answers. Maybe my problem is that my style and...
18
by: Bob Cummings | last post by:
Not sure if this is the correct place or not. Anyhow in school we were taught that when trying to calculate the efficiency of an algorithm to focus on something called FLOPs or Floating Point...
5
by: Byron | last post by:
I need to create an application that uses primarily a single form rather than an SDI that creates a new form for everythting. However, I don't want an MDI style application since the users I'm...
176
by: nw | last post by:
Hi, I previously asked for suggestions on teaching testing in C++. Based on some of the replies I received I decided that best way to proceed would be to teach the students how they might write...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.