View Full Version : Converting a table with images into css

10-02-2004, 11:36 AM
Hi again

I have this box that uses images, I had previously made it with tables (didn't know about the css "movement" then :D ), and I have tried to convert it into css only but I can't manage to get it right :( . So I hope someone could help me out. Heres the (Edit: "Link Removed per user request") with tables, this is the style (Edit: "Link Removed per user request") file and here are the (Edit: "Link Removed per user request")

I didn't set a specific width or height for the main content area, since this to organize diferent sized content text.

... Or you could show me a link were this is explained...notice that I have gone to most of the pinned sites at this forum but I haven't seen anything specific to this, most of these sites use a whole image as the boxe's background instead.

10-02-2004, 12:22 PM
so what do you have so far on turning it into CSS? it seems to me like you are jsut asking us to do it for you. Here's how it should be marked up:

<div class="box"> <!--Shouldnt really be box but i dont know the context of your usage, perhaps "newspost" or "comment" would be better-->

<h2>This is the box title</h2>

<div class="content">
<p>More Stuff</p>
<p class="last">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat</p>


That should provide you with enough hooks to use the http://alistapart.com/articles/customcorners/ method.

Although having just skim read that artcile i remembered how much i dont like the idea of that many needless divs, you might need another one in that markup =/

10-02-2004, 12:42 PM
thanks, I think thats the perfect tut for this :thumbsup:

I'll give it a go...and we'll see.

10-02-2004, 02:54 PM
Well... I followed that tutorial, and it quite looks how I want it to be, but the only thing I can't manage to do is to make the header text look like the one with tables (the vertical position of it), and if I decrease the padding from it, then the bottomright image overlaps the topright image, is there anyone who knows what to do about this? :confused:

Here's the (Edit: "Link Removed per user request") without tables, this is the new style (Edit: "Link Removed per user request") and here are the (Edit: "Link Removed per user request")

I kept the one with tables so that people get an idea of what I'm talkign about. (the ones at my first post)

Hope someone knows :( or at least give me a hint!

10-03-2004, 03:46 PM
I finally did it, if anyone is interested here's the (Edit: "Link Removed per user request") to the final box , and I had to follow other tutorial so that it worked with the type of box that I wanted, heres the tutorial (Edit: "Link Removed per user request"), I used the second example and changed it a bit to suit my needs.

10-04-2004, 09:49 AM

Great that you finished your thread with the final solution; now when others are searching to solve something like this, they'll find how you cracked it: very good! :thumbsup:

10-05-2004, 06:07 AM
thanks :D