This is a discussion on "Struggling to convert tables to CSS" within the Web Page Design section. This forum, and the thread "Struggling to convert tables to CSS are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Struggling to convert tables to CSS
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Struggling to convert tables to CSS
I'm trying to figure out if it's possible to convert the tables at http://wickedmoon.com/wickedmoon_v2b.php into CSS. I've put some descriptions on the page next to the graphics. One of the graphics needs to be tiled, but only as far as the page content goes. The content needs to overlay this graphic. Tables make it easy to do, as I can set the graphic as a table background. As I add more content to the table cell, more of the graphic is revealed and the image is designed to tile seamlessly down the page.
Jason |
|
|
|
||||
|
Re: Struggling to convert tables to CSS
For some reason this stupid firewall at work is blocking the site
But ... ALL site can be converted to CSS Resources for learning how to use CSS for layout |
|
|||
|
Re: Struggling to convert tables to CSS
Thanks for the reassurance
|
|
|||
|
Re: Struggling to convert tables to CSS
The page is too long really for a snapshot. I've attached the source code below if you can use that?
Jason
|
|
||||
|
Re: Struggling to convert tables to CSS
I need a visual .... Firefox has a nice Screengrab! extension which allows you to grab the complete page
|
|
|||
|
Re: Struggling to convert tables to CSS
Hi
Basically I think as karinne says this should be easy. If you can flow your div elements the middle one with the expanding image can have background-image:url(middle.jpg) ; background-repeat: repeat-y; To get the 3 columns of your inner table you use something like: <div style="float:left;width:200px;" >col 1 </div> <div style="float:left;width:200px;" >col 2 </div> <div style="float:left;width:200px;" >col 3 </div> To get the overall effect is going to be difficult becuase of your nested tables. Maybe if you put the above 3 columns in a div with the background set as above that would work: something like:
Justin Last edited by Kropotkin; Aug 10th, 2007 at 12:05. |
|
|||
|
Re: Struggling to convert tables to CSS
Here's some code for ya... it's similar to Justin's but I do it a bit differently. See if either of these shed light on your situation.
I didn't add a footer at the bottom. I figured you could do that. Just be sure if you use a footer div, you add a clear:both; to it because the div's above it are floated. Keep what you have for code and add this to the css: CSS
|
|
|||
|
I commend your decision to move to CSS, but first you need to have a basic undersstanding of how it works before actually building live sites.
Try reading some posts in this forum, or, better yet try www.w3schools.com. This is what your page looks like in IE6: Once again, test your pages in more than one bowser. |
|
|||
|
Re: Struggling to convert tables to CSS
Thanks for the firefox add-on, nice
Last edited by wickedmoon; Aug 10th, 2007 at 14:06. |
|
|||
|
Re: Struggling to convert tables to CSS
Quote:
|
|
|||
|
Re: Struggling to convert tables to CSS
Anyway...I never answered your question in my previous post.
Here's how I would solve this problem.
I won't actually write the code FOR you, but that should get you pointed in the right direction. I hope this helps. |
|
|||
|
Re: Struggling to convert tables to CSS
Quote:
|
|
|||
|
Re: Struggling to convert tables to CSS
oops.. I think the url for the background image is incorrect
also change background-image to background... try:
|
|
|||
|
Re: Struggling to convert tables to CSS
That works in IE6, but not FF2 (I didn't try it in IE before the changes we just made, so I don't know if it was working before or not). I tried emptying the browser cache. The image URL is correct. Any ideas what FF needs to display this image?
|
|
|||
|
Re: Struggling to convert tables to CSS
Do you have any words in the middle div? If not, you probably won't see the background in FF. Put some fake content in.
|
|
|||
|
Re: Struggling to convert tables to CSS
Yes, there was some text in. I've just put an image in, but there's still no background image. http://wickedmoon.com/wickedmoon_v2c.php. It looks like it might not be possible with CSS?
|
|
|||
|
Re: Struggling to convert tables to CSS
Yes it is possible...but you need to know your directory structure if you are going to build a website.
If you have a root folder with page.htm in it...and your CSS is in includes within the root...and your images are ALSO in the root...then the images and the CSS are at the same directory level. When the page is rendered, the images are called in relation to the CSS, not the html file. In your case you have your image in a subfolder one level deeper in your directory than the CSS is, which is probably why FOrefox is not finding it. Try this
|
|
|||
|
Re: Struggling to convert tables to CSS
Still not working. Earlier I had tried an absolute URL also. If this is going to work, there must be some small change to make.
|
![]() |
| Tags |
| graphic, table, tile |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Struggling to find a decent Popup Script | christopher | JavaScript Forum | 4 | Apr 6th, 2008 20:22 |
| i am REALLY struggling | DPhahn | Other Programming Languages | 39 | Feb 21st, 2008 13:45 |
| Struggling with Keywords | Pickle | Search Engine Optimization (SEO) | 4 | Jul 3rd, 2007 22:14 |
| Creating Forum - Struggling with Text Box Size | minckle | ASP.NET Forum | 2 | Apr 18th, 2007 13:45 |
| Easiest way to convert from tables to CSS | aod2002 | Web Page Design | 17 | Mar 11th, 2007 01:33 |