Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Span and div differences in Fx (or making colums with div's)
Old 04-02-2006, 01:50 PM Span and div differences in Fx (or making colums with div's)
gorilla's Avatar
Novice Talker

Posts: 7
Location: Hungary
Trades: 0
Good afternoon, everyone!
I want to make my page css based, and not table-based.
Now the biggest problem I ran into is that I can't make columns.
Div's are always aligned one under the other.
So I thought here should be used <span> tag. In IE it's ok. (I hardly ever make anything that looks bad in IE and looks good in Firefox. Strange. Most people say the opposite.)
With Fx i get some very weird results when I try to resize spans and give them a background image. Somehow not the whole content has the background.
With tables this is the layout that I want:

HTML Code:
  <table border=2>
    <tr>
      <td colspan=2>
        text1
      </td>
      <td rowspan=2>
        text2
      </td>
    </tr>  
    <tr>
      <td>
        text3
      </td>  
      <td>
        text4
      </td>
    </tr>
  </table>
Any help is appreciated! Many thanks!

Last edited by gorilla; 04-02-2006 at 01:55 PM..
gorilla is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-02-2006, 03:23 PM Re: Span and div differences in Fx (or making colums with div's)
Experienced Talker

Posts: 32
Location: Indiana, USA
Trades: 0
You will need to use <div>'s with floats to get your columns lined up side by side. Here's a good site to help walk you through and understand it.
__________________
They have computers, and they may have other weapons of mass destruction. - - Janet Reno
Smoking Man is offline
Reply With Quote
View Public Profile Visit Smoking Man's homepage!
 
Old 04-02-2006, 05:19 PM Re: Span and div differences in Fx (or making colums with div's)
gorilla's Avatar
Novice Talker

Posts: 7
Location: Hungary
Trades: 0
Hm, I can't say I understand... div floats? I tried to apply the css property "float:right" but the line-break remains. I don't want to use absolute positioning but that's the only thing which works for me...
I think I will make it with the table method... It's way more logical to me... Colspans and rowspans are easy to use easy to read and works the same way in all the browsers... CSS is for me some loose thing, you can't really be sure about the result, tables are always firm and solid... By the way, if someone can convince me that div's are better to use here, I will use them...
gorilla is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Span and div differences in Fx (or making colums with div's)
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.12189 seconds with 12 queries