Isn't it so that when you are creating DIVs you are
defining a part of the used layout? I will give an example.
I set up two DIV's: ID 'main_story' and ID 'summary'.
After setting this up I think it looks nice to have the summary put
into the upper-left corner of the main-story. And so I nest DIV
'summary' into DIV 'main_story'. Easy does it.
After a month or 3 I see a nice website and they have the 'summary' in
the top-left corner of the browser window, and not nested in the
main-story.
But we locked all summaries nested into the main-story, in 300
html-files. That's a problem right?
So the solution is to define every DIV absolute and not nested, just in
one line, no levels.
Any thoughts on that? 2 3375
Henk wrote: So the solution is to define every DIV absolute and not nested, just in one line, no levels.
Any thoughts on that?
Then you would be unable to place one section below another unless you know
its height in advance. Given variants in font size, that's impossible
unless you play around with overflow and have a page littered with
scrollbars.
Far simpler to just use a templating system. I'm fond of Template::Toolkit. http://www.template-toolkit.org/
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
in comp.infosystems. www.authoring.html, Henk wrote: Isn't it so that when you are creating DIVs you are defining a part of the used layout?
Not very often.
I set up two DIV's: ID 'main_story' and ID 'summary'. After setting this up I think it looks nice to have the summary put into the upper-left corner of the main-story. And so I nest DIV 'summary' into DIV 'main_story'. Easy does it.
After a month or 3 I see a nice website and they have the 'summary' in the top-left corner of the browser window, and not nested in the main-story.
But we locked all summaries nested into the main-story, in 300 html-files. That's a problem right?
At least in this case, it isn't. Of course, there is likely to be
something that you didn't tell us. URL.
Of course, if you deside that summary is not logical part of the original
div, you might want to change markup. Of course, there is practical
reasons for not do this, and no practical reasons to do it.
So the solution is to define every DIV absolute and not nested, just in one line, no levels.
Why? What problem you think it solves? Absolute position is quite
limiting...
Any thoughts on that?
And exactly what problem did you have? The markup does not need any
change here... use whichever makes more sence.
If you are afraid of problems in 300 files, use preprosessing, or
make it easy to do afterprosessing...
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Utrecht, NL.
Support me, buy Opera: https://secure.bmtmicro.com/opera/bu...tml?AID=882173 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Jane Withnolastname |
last post by:
I have a number of unordered lists nested within ULs nested within ULs
nested within ULs. I have set the style for LI to be .7em.
Mozilla gives me the layout as I imagined it, with the lists...
|
by: Dustin |
last post by:
Here's what I am trying to do:
(Names represent CSS classes.)
I want to create a photo gallery. I want the entire gallery to be
surrounded by a box named PhotoGallery. I want a fluid placement...
|
by: Markus Ernst |
last post by:
Hi
I have a validation problem with a form and nested divs. I understand what
the problem is, but I don't see how to fix it. This is my normal page
structure, and it validates:
<!DOCTYPE HTML...
|
by: DotNetGuru |
last post by:
Hi,
I have nested User Controls like below.
User_Control_1
User_Control_11
User_Control_12(contains method DisplayMessage)
User_Control_2(contains event onButtonClick )
User_Control_1 and...
|
by: ~~~ .NET Ed ~~~ |
last post by:
Hi,
As you all know when an ASP.NET web form is created that will include
web controls and such, it contains a
FORM that that identifies the web form and its containing controls.
Well, I have a...
|
by: Roy |
last post by:
Here's my problem for the curious consumption of the group mind... I
have an embedded datagrid which works fine. The child grid is nested
within the parent using a templatecolumn tag. Using the TR...
|
by: khurram.shakir |
last post by:
I am developing an application, which uses .NET 2.0/WinForms and has a
designer for screen layout designing. User has an option to design the
layout of screen, and for that we developed our own...
|
by: D |
last post by:
Hi,
I've been toying around with master pages and am trying to set up your
standard banner across the top and 3 areas below that, left content, center
content and right content.
I have the...
|
by: gezerpunta |
last post by:
Hi
I used pear api to make this mail but I can t add multipart.My mail
structure is like that.
part 1: a file
part 2: multipart
part 1: a file
part 2: a file
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |