Welcome Guest ( Log In | Register)



2 Pages V  < 1 2  
Reply to this topicStart new topic
> Align Text Column Without Tables Using Css, Is it possible to get a 3 column alignment without using tables with C
Saint_Michael
post Nov 26 2007, 08:48 AM
Post #11


$p4m 0n j00 $h4m3 m3 0nc3 $p4m 0n m3 $h4m3 m3 7\/\/1c3
*********************

Group: [HOSTED]
Posts: 6,565
Joined: 21-September 04
From: 9r33|\| 399$ 4|\|D 5P4/\/\
Member No.: 1,218
T17 GFX Crew



Well I was bit off on the layout but the concept your going for was the same, but as for the widths you would have to set up individual styles to them in two different ways. Using trufusions example all you have to do is set up the CSS for Col1 Col2 Col3 which would look something like this:

CODE
ul.col1 li {
width:35px
}
ul.col2 li {
width:65px
}
ul.col3 li {
width:100px
}


That way it would be universal and cute down on the work by doing them individually like this:

CODE
<li style="width: 65px;"> Content here</li>


Either method is effective but the first options cuts down on the clutter in the html, and if you need to make changes on the fly you can just do it from one file instead of doing it over several files. Of course if you feel very adventurous you can set up your tables through ajax, this website gives quite a few examples of different table set ups that can be used.
Go to the top of the page
 
+Quote Post
sonesay
post Jan 29 2008, 03:58 AM
Post #12


|||[ n00b King ]|||
*********

Group: [HOSTED]
Posts: 688
Joined: 20-June 07
From: Auckland
Member No.: 45,102



Sorry to bump up an old thread but I've found a problem with IE7 and this solution. IE 7 does not support display:table-cell (one of manythings IE 7 really sucks at). The only way to get <li> elements displaying in the same line similar to the effect of display:table-cell solution in this post is

display:inline;

But there is still another problem in IE7.
CODE

li.col1 {
width:120px;


The width class we have been using to give our widths dont work also. So you see IE 7 offically is the worse compliant broswer out there. I have no doubt I will find more features it does not support and it will continue to make life for us designing webpages as painful as possible.
If anyone has a solution to the width spacing for 'display:inline;' method please share.


edit:

Ok I'm still looking for a suitable sultion that works in IE 7 but the only thing I know is tables now. I'm trying to test out if I can use more divs inside to structure it but with truefusions code it hides all div by default as you can see in the source code in the screen shot. I'm still not fimilar with how to modify it to not include the inner divs.

This post has been edited by sonesay: Jan 30 2008, 10:48 AM
Attached File(s)
Attached File  displayerror.png ( 402.61k ) Number of downloads: 3
 
Go to the top of the page
 
+Quote Post
truefusion
post Jan 30 2008, 02:01 PM
Post #13


Ephesians 6:10-17
Group Icon

Group: [MODERATOR]
Posts: 1,918
Joined: 22-June 05
From: The World of Gentoo
Member No.: 8,528



QUOTE(sonesay @ Jan 28 2008, 10:58 PM) *
The width class we have been using to give our widths dont work also. So you see IE 7 offically is the worse compliant broswer out there. I have no doubt I will find more features it does not support and it will continue to make life for us designing webpages as painful as possible.
If anyone has a solution to the width spacing for 'display:inline;' method please share.

Width does not work with all inline-level elements.

QUOTE(sonesay @ Jan 28 2008, 10:58 PM) *
Ok I'm still looking for a suitable solution that works in IE 7 but the only thing I know is tables now. I'm trying to test out if I can use more divs inside to structure it but with truefusions code it hides all div by default as you can see in the source code in the screen shot. I'm still not fimilar with how to modify it to not include the inner divs.

My code only hides the "inactive" ones by default, but i am unsure on what to tell you for the solution. If Internet Explorer lacks, then it lacks. You could try to persuade visitors to switching to a better browser. It's interesting that IE7, though it had a noticable improvement with CSS, lacks such an option. I am unsure of any IE CSS hacks (there may not be any) for this. I'm quite sure i can turn my tab script to use tables instead of divisions, even if it creates unnecessary clutter.
Go to the top of the page
 
+Quote Post
sonesay
post Jan 30 2008, 06:34 PM
Post #14


|||[ n00b King ]|||
*********

Group: [HOSTED]
Posts: 688
Joined: 20-June 07
From: Auckland
Member No.: 45,102



Thinking it over last night as I went to bed I think It would be much easier to use tables to structure the output. It will get clutered with tags but the upside is no futher tweaking of the CSS tabs would need to be done to accomodate the extra inner divs.

Thanks for your input truefusion.
Go to the top of the page
 
+Quote Post

2 Pages V  < 1 2
Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Is It Possible To Align Text To The Center And Justify It?(6)
  2. Css Alignment Bug(10)
  3. Need Help On "global News" Problem.(7)
  4. Text Size Problem(6)
  5. Using Unknown Fonts For Text In Webpage(5)
  6. Problem Getting Text To Align With Different Resolutions(4)


 



- Lo-Fi Version Time is now: 13th October 2008 - 07:06 PM