/    Sign up×
Community /Pin to ProfileBookmark

reusing <div> sections

Hello all,

This is my first post! ? I know just enough css to reuse-by-example, but not enough to actively know what I’m looking for when I need to do something new. *sigh*

Here is the problem:

I have a <div. . .> </div> section that I use in numerous pages. It is identical in each. For example:

<div class=”Mydivclass”>
The actual words in this division are identical on numerous pages, but it is very lengthy
<div class=”Mysubdivclass”>
. . . as are these words as well.
</div>
</div>

The properties (position, width, height, etc.) of the div and sub-div are specified in a .css file.

Currently, I am simply copy/pasting it onto each .html page. How can I reuse this on each page without copy/pasting the entire thing?

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@TheAliveWinnerFeb 29.2012 — For that you have to use [I]SSI (Server Side Includes)[/I] using any of the [I]Server Side Scripting Languages[/I] viz. [I]ASP[/I].[I]NET[/I], [I]PHP [/I]etc.

And of course your pages [COLOR="Red"]won't remain[/COLOR] [B][I].html [/I][/B]anymore and would become [I][B].asp [/B][/I]or [I][B].php[/B][/I]!

[I]So, learn any Server Side Language![/I]

[B]All the best![/B]
Copy linkTweet thisAlerts:
@paradoxresolvedauthorFeb 29.2012 — Rats. Ok! Thank you! ?
Copy linkTweet thisAlerts:
@TheAliveWinnerFeb 29.2012 — Rats. Ok! Thank you! ?[/quote]
[COLOR=SeaGreen] [FONT=Century Gothic][SIZE=3][I][COLOR=Green][B]You are welcome![/B][/COLOR][/I][/SIZE][/FONT][/COLOR] ?:p???
×

Success!

Help @paradoxresolved spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...