Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Is this possible with DIVs?

 
   Web Hosting and Web Master Forums (Home) -> Webmaster RSS
Next:  New Webmaster Forum  
Author Message
rigga

External


Since: Mar 07, 2004
Posts: 3



(Msg. 1) Posted: Sun Mar 07, 2004 12:54 pm
Post subject: Is this possible with DIVs?
Archived from groups: alt>www>webmaster (more info?)

Hi,

I am new to web design and have been reading up on positioning with DIVs and
CSS to do away with tables in the design of my pages. What I would like to
achieve is have a 3 column page broke down as follows:

Left div = Nav
Center div = Content
Right div = News

When a link is selected from the Nav column say for example 'Screenshots' I
want to pass the value Screenshots to my php script which will then load
the page called screenshots.html in to the Content div, much the same way I
guess if you were using tables.

Is this possible using Divs? is it a good way of doing it or should I stick
to tables for dynamic sites????

You advice is appreciated

riGGa

 >> Stay informed about: Is this possible with DIVs? 
Back to top
Login to vote
spamblocked1

External


Since: Sep 19, 2003
Posts: 3499



(Msg. 2) Posted: Sun Mar 07, 2004 1:06 pm
Post subject: Re: Is this possible with DIVs? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

RiGGa wrote:
 >
 > I am new to web design and have been reading up on positioning with
 > DIVs and CSS to do away with tables in the design of my pages. What
 > I would like to achieve is have a 3 column page broke down as follows:
 >
 > Left div = Nav
 > Center div = Content
 > Right div = News

yes, this is possible - research: css 3 column layout

but if you are new to css you may find 3 columns a little challenging - may
be best to rearrange your pages to 2 columns; perhaps ...

o Top: navigation
o Left: content
o Right: news

 > When a link is selected from the Nav column say for example
 > 'Screenshots' I want to pass the value Screenshots to my php script
 > which will then load the page called screenshots.html in to the
 > Content div, much the same way I guess if you were using tables.

yep - that bit is exactly the same.

 > Is this possible using Divs? is it a good way of doing it or should I
 > stick to tables for dynamic sites????

Whether the document is 'dynamic' or not has little or no bearing on the
best techniques for defining presentation.

You'll never know if you don't try.
--
William Tasso<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Is this possible with DIVs? 
Back to top
Login to vote
rigga

External


Since: Mar 07, 2004
Posts: 3



(Msg. 3) Posted: Sun Mar 07, 2004 6:33 pm
Post subject: Re: Is this possible with DIVs? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

William Tasso wrote:

 > RiGGa wrote:
  >>
  >> I am new to web design and have been reading up on positioning with
  >> DIVs and CSS to do away with tables in the design of my pages. What
  >> I would like to achieve is have a 3 column page broke down as follows:
  >>
  >> Left div = Nav
  >> Center div = Content
  >> Right div = News
 >
 > yes, this is possible - research: css 3 column layout
 >
 > but if you are new to css you may find 3 columns a little challenging -
 > may be best to rearrange your pages to 2 columns; perhaps ...
 >
 > o Top: navigation
 > o Left: content
 > o Right: news
 >
  >> When a link is selected from the Nav column say for example
  >> 'Screenshots' I want to pass the value Screenshots to my php script
  >> which will then load the page called screenshots.html in to the
  >> Content div, much the same way I guess if you were using tables.
 >
 > yep - that bit is exactly the same.
 >
  >> Is this possible using Divs? is it a good way of doing it or should I
  >> stick to tables for dynamic sites????
 >
 > Whether the document is 'dynamic' or not has little or no bearing on the
 > best techniques for defining presentation.
 >
 > You'll never know if you don't try.

Thanks, all I gotta do now is work out how to load the content Smile<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Is this possible with DIVs? 
Back to top
Login to vote
anonymous

External


Since: Jan 28, 2004
Posts: 58



(Msg. 4) Posted: Sun Mar 07, 2004 6:45 pm
Post subject: Re: Is this possible with DIVs? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

RiGGa wrote:

  > Hi,

  > I am new to web design and have been reading up on positioning with DIVs
  > and CSS to do away with tables in the design of my pages. What I would
  > like to achieve is have a 3 column page broke down as follows:

  > Left div = Nav
  > Center div = Content
  > Right div = News

  > When a link is selected from the Nav column say for example 'Screenshots'
  > I want to pass the value Screenshots to my php script which will then
  > load the page called screenshots.html in to the Content div, much the
  > same way I guess if you were using tables.

  > Is this possible using Divs? is it a good way of doing it or should I
  > stick to tables for dynamic sites????

  > You advice is appreciated

  > riGGa


<style type="text/css">

..box1 { width:100px; height:100px; border:solid black; background:white;
float:left; }
..box2 { width:100px; height:100px; border:solid black; background:white;
float:left; }
..box3 { width:100px; height:100px; border:solid black; background:white;
float:nonel;}

</style>
<body>

<div class="box1">left</div>
<div class="box2">center</div>
<div class="box3">right</div>

<div class="box1">left</div>
<div class="box2">center</div>
<div class="box3">right</div>


</body>


"float:left" displays the next division to the right of the first one and is
the key to side by side divisions.
"float:none" ends the "float".

What you will see are 3 divisions side by side of eqaul proportions each
with a white hackground and a black border.
For some reason, my test on my editor shows a gap between the center and
right division.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Is this possible with DIVs? 
Back to top
Login to vote
user162

External


Since: Jul 31, 2003
Posts: 67



(Msg. 5) Posted: Mon Mar 08, 2004 5:24 am
Post subject: Re: Is this possible with DIVs? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Richard" <anonymous.RemoveThis@127.000> wrote in message
news:c2g51t015j6@enews3.newsguy.com...
 > RiGGa wrote:
 >
  > > Hi,
 >
  > > I am new to web design and have been reading up on positioning with
DIVs
  > > and CSS to do away with tables in the design of my pages. What I would
  > > like to achieve is have a 3 column page broke down as follows:

 > <style type="text/css">
 >
 > .box1 { width:100px; height:100px; border:solid black; background:white;
 > float:left; }
 > .box2 { width:100px; height:100px; border:solid black; background:white;
 > float:left; }
 > .box3 { width:100px; height:100px; border:solid black; background:white;
 > float:nonel;}
 >
 > </style>
 > <body>
 >
 > <div class="box1">left</div>
 > <div class="box2">center</div>
 > <div class="box3">right</div>
 >
 > <div class="box1">left</div>
 > <div class="box2">center</div>
 > <div class="box3">right</div>
 >
 >
 > </body>
 >
 >
 > "float:left" displays the next division to the right of the first one and
is
 > the key to side by side divisions.
 > "float:none" ends the "float".

Rubbish. Float:none does nothing at all, it simply means the box is not
floated.

To "end" a float, as you so quaintly put it, clear:left is indicated in this
case.

I recall you trying to promote an almost identical solution last year. It
was rubbish then.

Here is your 'solution' with a little bit more text in one of the boxes.
<a style='text-decoration: underline;' href="http://users.bigpond.net.au/rf/test/box.html" target="_blank">http://users.bigpond.net.au/rf/test/box.html</a>
Doesn't look good does it.

 > What you will see are 3 divisions side by side of eqaul proportions each
 > with a white hackground and a black border.

No I don't. With IE I see boxes spread across the screen. With Mozilla I see
boxes on top of each other.

 > For some reason, my test on my editor shows a gap between the center and
 > right division.

You test things with an editor? My, how naive. I test things with a browser.

Cheers
Richard.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Is this possible with DIVs? 
Back to top
Login to vote
rigga

External


Since: Mar 07, 2004
Posts: 3



(Msg. 6) Posted: Mon Mar 08, 2004 10:34 am
Post subject: Re: Is this possible with DIVs? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

rf wrote:

 >
 > "Richard" <anonymous.DeleteThis@127.000> wrote in message
 > news:c2g51t015j6@enews3.newsguy.com...
  >> RiGGa wrote:
  >>
   >> > Hi,
  >>
   >> > I am new to web design and have been reading up on positioning with
 > DIVs
   >> > and CSS to do away with tables in the design of my pages. What I
   >> > would like to achieve is have a 3 column page broke down as follows:
 >
  >> <style type="text/css">
  >>
  >> .box1 { width:100px; height:100px; border:solid black; background:white;
  >> float:left; }
  >> .box2 { width:100px; height:100px; border:solid black; background:white;
  >> float:left; }
  >> .box3 { width:100px; height:100px; border:solid black; background:white;
  >> float:nonel;}
  >>
  >> </style>
  >> <body>
  >>
  >> <div class="box1">left</div>
  >> <div class="box2">center</div>
  >> <div class="box3">right</div>
  >>
  >> <div class="box1">left</div>
  >> <div class="box2">center</div>
  >> <div class="box3">right</div>
  >>
  >>
  >> </body>
  >>
  >>
  >> "float:left" displays the next division to the right of the first one and
 > is
  >> the key to side by side divisions.
  >> "float:none" ends the "float".
 >
 > Rubbish. Float:none does nothing at all, it simply means the box is not
 > floated.
 >
 > To "end" a float, as you so quaintly put it, clear:left is indicated in
 > this case.
 >
 > I recall you trying to promote an almost identical solution last year. It
 > was rubbish then.
 >
 > Here is your 'solution' with a little bit more text in one of the boxes.
<font color=purple> > <a style='text-decoration: underline;' href="http://users.bigpond.net.au/rf/test/box.html</font" target="_blank">http://users.bigpond.net.au/rf/test/box.html</font</a>>
 > Doesn't look good does it.
 >
  >> What you will see are 3 divisions side by side of eqaul proportions each
  >> with a white hackground and a black border.
 >
 > No I don't. With IE I see boxes spread across the screen. With Mozilla I
 > see boxes on top of each other.
 >
  >> For some reason, my test on my editor shows a gap between the center and
  >> right division.
 >
 > You test things with an editor? My, how naive. I test things with a
 > browser.
 >
 > Cheers
 > Richard.
Thanks for your input guys its appreciated. I'll end this thread now before
it all turns nasty Smile<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Is this possible with DIVs? 
Back to top
Login to vote
spamblocked1

External


Since: Sep 19, 2003
Posts: 3499



(Msg. 7) Posted: Mon Mar 08, 2004 10:38 am
Post subject: Re: Is this possible with DIVs? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

RiGGa wrote:
 > ...
 > Thanks for your input guys its appreciated.

Hope it works out for you.

 > I'll end this thread now before it all turns nasty Smile

if only it were that simple.

--
William Tasso<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Is this possible with DIVs? 
Back to top
Login to vote
user162

External


Since: Jul 31, 2003
Posts: 67



(Msg. 8) Posted: Mon Mar 08, 2004 11:10 am
Post subject: Re: Is this possible with DIVs? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"William Tasso" <SpamBlocked RemoveThis @tbdata.com> wrote in message
news:c2h7qf$1tcb9t$1@ID-139074.news.uni-berlin.de...
 > RiGGa wrote:
  > > ...
  > > Thanks for your input guys its appreciated.
 >
 > Hope it works out for you.
 >
  > > I'll end this thread now before it all turns nasty Smile
 >
 > if only it were that simple.

Usenetlife would be so boooring if it were that simple. Imagine being able
to end a thread at will Smile

Cheers
Richard.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Is this possible with DIVs? 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Webmaster All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]