Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old March 17th, 2006, 05:45 AM
greg.mckone@gmail.com
Guest
 
Posts: n/a
Default New to non-table layout trying CSS div layout with difficulties.

Hi folks,

I've been using CSS for style for several years now, but I've never
attempted a layout using CSS. (I'd like to move away from tables)

I'm working on a page here:
http://www.eurekacamp.ca/demo/contact.php
using the stylesheet here:
http://www.eurekacamp.ca/demo/Eureka.css

To describe it as a table. I'm hoping to have a large cell with the
text for a section contained in it. and then a smaller cell with an
image. My problem is I simply can't get the DIV tags to align side by
side. The second div keeps showing up below where the first one
finishes.
I have seen something like this work here on css-discuss:
http://css-discuss.incutio.com/?page=TwoColumnFloat

I don't understand why their example works and my attempt does not.

I appreciate any assistance (and pointers) the community can provide.

Thanks
Greg.

  #2  
Old March 17th, 2006, 06:25 AM
Jim Moe
Guest
 
Posts: n/a
Default Re: New to non-table layout trying CSS div layout with difficulties.

greg.mckone@gmail.com wrote:[color=blue]
>
> To describe it as a table. I'm hoping to have a large cell with the
> text for a section contained in it. and then a smaller cell with an
> image. My problem is I simply can't get the DIV tags to align side by
> side. The second div keeps showing up below where the first one
> finishes.
>[/color]
What two divs are you talking about?
(<div>s are elements, not tags.)

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
  #3  
Old March 18th, 2006, 10:35 PM
Nije Nego
Guest
 
Posts: n/a
Default Re: New to non-table layout trying CSS div layout with difficulties.

On 16 Mar 2006 21:34:07 -0800, greg.mckone@gmail.com wrote:
[color=blue]
> Hi folks,
>
> I've been using CSS for style for several years now, but I've never
> attempted a layout using CSS. (I'd like to move away from tables)
>
> I'm working on a page here:
> http://www.eurekacamp.ca/demo/contact.php
> using the stylesheet here:
> http://www.eurekacamp.ca/demo/Eureka.css
>
> To describe it as a table. I'm hoping to have a large cell with the
> text for a section contained in it. and then a smaller cell with an
> image. My problem is I simply can't get the DIV tags to align side by
> side. The second div keeps showing up below where the first one
> finishes.
> I have seen something like this work here on css-discuss:
> http://css-discuss.incutio.com/?page=TwoColumnFloat
>
> I don't understand why their example works and my attempt does not.
>
> I appreciate any assistance (and pointers) the community can provide.
>
> Thanks
> Greg.[/color]

1. (Comment) The sample you provided is nowhere near non-table layout.
2. (Answer) Your #topcontent and #bottomcontent has 60% width each, how do
you expect them to fit side by side in 800px table cell, which is 100% in
your case, where you may have to need 120%?

--
o'tom po'tom
  #4  
Old March 19th, 2006, 04:15 AM
greg.mckone@gmail.com
Guest
 
Posts: n/a
Default Re: New to non-table layout trying CSS div layout with difficulties.

OK, good clarification on "element" versus "tag" thank you.

Yes, I was hoping for a hybrid approach until I wean myself off of
tables.

As I am used to tables, if I have rows. (my page has a table with rows)
in a given row I have 100% to work with, so my "topcontent" has 60% and
my "bottomcontent" has 60% because they are in seperate rows. I'm
working under the understanding that these Divs will live within the
table rows because that is where they have been placed (they are
contained) and that within that row, CSS can be used to layout the
elements in that row.

Does that make sense? I'm well aware of how poorly this page is
working, what I'm asking is why the Div elements won't co-exist side by
side (at the same location vertically on the page) when I'm specifying
widths for the elements that are less than 100% So
"topcontent" should be to the left of "topimage"
"bottomcontent" should be to the left of "bottomimage"

Sounds to me like I should just use tables.
Unless this is really straight forward?

Greg.


Nije Nego wrote:[color=blue]
> On 16 Mar 2006 21:34:07 -0800, greg.mckone@gmail.com wrote:
>[color=green]
> > Hi folks,
> >
> > I've been using CSS for style for several years now, but I've never
> > attempted a layout using CSS. (I'd like to move away from tables)
> >
> > I'm working on a page here:
> > http://www.eurekacamp.ca/demo/contact.php
> > using the stylesheet here:
> > http://www.eurekacamp.ca/demo/Eureka.css
> >
> > To describe it as a table. I'm hoping to have a large cell with the
> > text for a section contained in it. and then a smaller cell with an
> > image. My problem is I simply can't get the DIV tags to align side by
> > side. The second div keeps showing up below where the first one
> > finishes.
> > I have seen something like this work here on css-discuss:
> > http://css-discuss.incutio.com/?page=TwoColumnFloat
> >
> > I don't understand why their example works and my attempt does not.
> >
> > I appreciate any assistance (and pointers) the community can provide.
> >
> > Thanks
> > Greg.[/color]
>
> 1. (Comment) The sample you provided is nowhere near non-table layout.
> 2. (Answer) Your #topcontent and #bottomcontent has 60% width each, how do
> you expect them to fit side by side in 800px table cell, which is 100% in
> your case, where you may have to need 120%?
>
> --
> o'tom po'tom[/color]

  #5  
Old March 19th, 2006, 07:15 AM
greg.mckone@gmail.com
Guest
 
Posts: n/a
Default Re: New to non-table layout trying CSS div layout with difficulties.

I've started my compromise. I've retreated back to tables, but have
used an absolutely positioned graphic (tree on the right side of the
page).

http://www.eurekacamp.ca/demo/contact.php

I liked the effect so much I decided to try it on the left with a div
that holds images (each image 200px wide, the div 200px wide, so they
stack vertically.) I had planned top pop this on the left of the page
and then use the table to bump the text to the right so it didn't
collide. However, I'm seeing the images from the div TWICE. once
they appear as if the stylsheet didn't exist and the second time they
seem to be positioned correctly. These are foreground images. The
stylesheet can be seen here: http://www.eurekacamp.ca/demo/Eureka.css

Thanks for your assistance, sorry for the novice questions, but my css
positioning skill is quite low.

Greg.

 

Bookmarks


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

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

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

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles