![]() |
how to make this into a table format using css
hello,
i'm working on my portfolio :-) and what i'm trying to do is look in the content area on this page http://www.sarmenhb.com/new/ i'm trying to display the items stacked up horizontally to be stacked vertically as if placed horizontally. but it wont work, i tried placing it into li elements and displaying it inline but that wont work... how can i do this? i know it can be done within a table but iwant to try doing it witout a table. let me know what i can do thanks. |
I'm not sure if I understand you correctly but you want to stack around 4 "items" horiztonal and keep stacking them vertically? Something like this:
Section 1 | Section 2 | Section 3 | Section 4 --------------------------------------------------- Section 5 | Section 6 | Section 7 | Section 8 If thats the case, you can setup 2 DIVs width around 800px-1000px or so and *IN* the DIV create 4 more DIVs, one for each section. Finally, repeat the same thing for the bottom section except it will be right under the first 4. Hope this helps. Let me know if you need more help. |
If what you mean is as 9three, just want a list that would go vertical after a certain quantity of horizontal elements, you could have a simple list like this:
HTML Code:
<style type="text/css"> |
hi, thanks to both of your replies
i tried tony's and 9three's suggestions and its not turning into a table look. can you take a look and see if i might be doing something wrong? basically what i want is something like this Security | SEO | W3C Compliancy -------------------------------- handicap | Tables | Cross-Browser just like 9three guessed thanks for your suggestions btw, i uploaded the page to sarmenhb.com |
my bad, I forgot that you need to clear (put a <div class="clear"></div>) for every 3 li's or as many elements you want to show per line: it would look like this:
HTML Code:
<style type="text/css">Instead you can just keep it simple with (X)HTML and add that functionality of including just certain html code with PHP. that's just my point. I don't even know if I made it across right :P |
thanks dude! exactly what i was looking for, you rock.
|
| All times are GMT. The time now is 08:30 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0