Computer Webmaster Gaming Console Graphics Forum

Welcome to the Computer Webmaster Gaming Console Graphics Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

MK PitStop Main Earn $25 Earn Money Posting Extras Members Blogs Image Hosting User Pages
Go Back   Computer Webmaster Gaming Console Graphics Forum > Webmaster Forum > Website Coding > HTML
Register FAQ/Rules Become A V.I.P. Member Search Today's Posts Mark Forums Read

HTML HTML problems, maybe you are trying to code for MySpace. Get all the HTML coding help here for your website.

Google
Reply
 
LinkBack Thread Tools Display Modes
Old 07-01-2007, 12:25 PM   #1
bole2cant
 
bole2cant's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Multiple Use of a Division

Is there a way to use a division twice on a page without duplicating its
attributes under a new name in the stylesheet?

I'm converting from table layout to div layout. The div's at the bottom of the
page are exactly the same as the div's at the top of the page--non-div content
in between. Validating gives two errors for each repeated div.
--
-Doug


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Advertisements
Old 07-01-2007, 12:25 PM   #2
brucie
 
brucie's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Multiple Use of a Division

In post <bdae56$q12$1@terabinaries.xmission.com>
bole2cant said...

> Is there a way to use a division twice on a page without duplicating its
> attributes under a new name in the stylesheet?


give the <div>s the same class if they use the same CSS

> I'm converting from table layout to div layout. The div's at the bottom of the
> page are exactly the same as the div's at the top of the page--non-div content
> in between. Validating gives two errors for each repeated div.


URI?

--
brucie a. blackford. 25/June/2003 07:12:48 am kilo.
http://loser.brucies.com/
 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-01-2007, 12:25 PM   #3
Jukka K. Korpela
 
Jukka K. Korpela's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Multiple Use of a Division

"bole2cant" <sherwin@xxxmission.com> wrote:

> Validating gives two errors for each repeated div.


The crystal ball says that you have id attributes in them. By HTML
definition, id attribute values must be unique within a document.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-01-2007, 12:25 PM   #4
bole2cant
 
bole2cant's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Multiple Use of a Division


"Jukka K. Korpela" <jkorpela@cs.tut.fi> wrote in message
news:Xns93A529B85466jkorpelacstutfi@193.229.0.31.. .
> "bole2cant" <sherwin@xxxmission.com> wrote:
>
> > Validating gives two errors for each repeated div.

>
> The crystal ball says that you have id attributes in them. By HTML
> definition, id attribute values must be unique within a document.
> --
> Yucca, http://www.cs.tut.fi/~jkorpela/
> Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
>

==================
At this point I don't know the proper terminology but I think you are telling
me that YES I must repeat the same attributes in the stylesheet as
div#right{...} AND div#rightftr{...} .
i.e.,
div#right{...} cannot be used as
<div id="right"> twice on the same page.

Thanks.
--
Doug



 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-01-2007, 12:26 PM   #5
bole2cant
 
bole2cant's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Multiple Use of a Division

"brucie" wrote:

> change the id (#) to a class (.)
> div.right{...}
> <div class="right">
> you can then use the '.right' class as many times as you like in the
> page.


=====================

That is the information I needed. I changed them and all is well.
(Well, except for the •)

Thanks, Brucie. I appreciate your help.
--
-Doug in Utah
www.xmission.com/~sherwin/



 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Featured Websites
Free Space
Free Space
Free Space Free Space
Reply
Tags: , ,




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
spin this one bligfuck: Sony to Restructure Games Division; Global Job Cuts Under Consideration (WSJ) AirRaid New Users Help And FAQ 12 06-26-2007 8:38 AM
Leaflet with article on Hermann Göring Division we Ebay Technical Questions 0 05-31-2007 8:56 AM
spin this one bligfuck: Sony to Restructure Games Division; Global Job Cuts Under Consideration (WSJ) AirRaid Computer Consoles 14 05-30-2007 5:17 PM
Multiple URL's, same page acer152 Website Reviews And Website Questions 2 05-28-2007 12:13 AM
Multiple Domains Johnni Cheap Web Hosting Package 4 12-15-2006 9:08 AM


Featured Websites




All times are GMT +1. The time now is 7:21 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0
Cheap Computers
MK PitStop Copyright 2005 - 2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98