Jump to content


First Layout Using CSS Instead of Tables


6 replies to this topic

#1 Jaymz

    Retired P2L Staff

  • Members
  • PipPipPipPip
  • 4,104 posts

Posted 19 June 2005 - 05:31 PM

Hello P2L Members!

I am in the need of some CSS assistance. I've decided that while I'm rennovating my site with a new layout, I might as well make an effort to become more standards compliant and use XHTML and CSS instead of tables. However, since I've never done this before I'm running into some problems.

I'm trying to create a fairly simple layout with some content boxes, but my inexperience in CSS is giving me some issues. Whenever I attempt to add a SPAN or DIV below my titles, it throws the rest of that area out of whack.

You can see my attempt at coding here: http://www.designbyj...v5/test_css.htm

And the layout I'm coding here:
http://www.pixel2lif...?showtopic=7459

#2 Mark

    Young Padawan

  • Members
  • Pip
  • 113 posts

Posted 19 June 2005 - 06:47 PM

Wait, you want to add spans underneath "Main Navigation" and "Latest Entries" and stuff? The alternating colored list items?

If you have AIM or MSN, contact me. MxVash - MarkA.Holmes@Gmail.com <3

#3 Jaymz

    Retired P2L Staff

  • Members
  • PipPipPipPip
  • 4,104 posts

Posted 19 June 2005 - 06:50 PM

Mark, on Jun 19 2005, 08:47 PM, said:

Wait, you want to add spans underneath "Main Navigation" and "Latest Entries" and stuff?  The alternating colored list items?
Yup <3

Edit: Thanks for the help, but I'm going with a different template <3

Edited by Jaymz, 19 June 2005 - 09:06 PM.


#4 Jaymz

    Retired P2L Staff

  • Members
  • PipPipPipPip
  • 4,104 posts

Posted 22 June 2005 - 11:22 AM

Okay, it's been a few days so I'm going to risk a taboo (Sorry Donna :blink:) and bring this topic back rather than starting a new one.

As many of you know from my galleries topic, I've decided on another layout. Well, the coding is going great, except I've run into an inevitable problem with IE. I know the CSS support in IE is horrible, but I'm sure there is a solution.

http://www.designbyjaymz.com/temp/v5

The site looks perfect in Firefox so far, however, with viewed with IE the main content "wraps" below the side bar, kind of like when you insert an image in MS Word and change the wrapping. That's all find and dandy except I want the sidebar to be it's own column.

Please nobody tell me to use a table, I'm working towards a completely table-less design and trying very hard to maintain standards compliance. Any help is greatly appreciated. ;)

#5 adam123

    Retired P2L Staff

  • Members
  • PipPipPipPip
  • 2,306 posts
  • Location:London, UK
  • Interests:Programming and stuff.

Posted 22 June 2005 - 12:19 PM

Use a table :P

Where it says:

#contentcolumn {
color: #5F5F5F;
vertical-align: top;
overflow: auto;
margin-bottom: auto; }

in your css, add "width: 600px;" without the quotes, should stop it from wrapping. Adjust it to the right width so it looks good.

#6 Jaymz

    Retired P2L Staff

  • Members
  • PipPipPipPip
  • 4,104 posts

Posted 22 June 2005 - 12:24 PM

adam123, on Jun 22 2005, 02:19 PM, said:

Use a table ;)

Where it says:

#contentcolumn {
color: #5F5F5F;
vertical-align: top;
overflow: auto;
margin-bottom: auto; }

in your css, add "width: 600px;" without the quotes, should stop it from wrapping. Adjust it to the right width so it looks good.
Now I feel stupid... Thanks Adam :P

#7 adam123

    Retired P2L Staff

  • Members
  • PipPipPipPip
  • 2,306 posts
  • Location:London, UK
  • Interests:Programming and stuff.

Posted 22 June 2005 - 12:27 PM

No problem :P





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users