473,407 Members | 2,598 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Borders and images in tables.

YarrOfDoom
1,247 Expert 1GB
I've started building a website, and I've encountered some problems with the tables. Two, actually. The first: I can't get the borders away, I can make them invisible (border="0"), but they're still there taking space. Second one: the images I use as background for the cells aren't streched but tiled (maybe not to see on non-widescreen monitors), how can I solve this?
If you want to see it, look here.

Yarr
edit: woops, forgot to validate, got some work to do
Jan 29 '08 #1
8 1260
Death Slaught
1,137 1GB
Great site Yarr!

For the background image problem in your cells have you tried adding this property.

Expand|Select|Wrap|Line Numbers
  1.  background-repeat:no-repeat;
As for the table borders i'm not entirely sure. I would try adding this to your CSS

Expand|Select|Wrap|Line Numbers
  1.  * { 
  2. margin:0;
  3. padding:0;
  4. }
  5.  
I don't know if this will have any effect on this, but if you don't mind me asking why are you using a table layout instead of an unordered list?

Thanks, Death
Jan 29 '08 #2
YarrOfDoom
1,247 Expert 1GB
Hmm.. You will have to simplicate that a bit, I never understood CSS very well. And unordered lists instead of tables, I have no idea how to start on that, And I always tought tables were the best way to get control over your layout.
Jan 29 '08 #3
Death Slaught
1,137 1GB
Ignore what I said about using an unordered list I was thinking of something else. As for the other also ignore it.

The problem is coming from your image not your table. For some reason I can't think of how to fix this. I'll remember soon enough and then I'll post it.

Until then you should try making your page valid HTML, and you really should add a DOC Type (stupid IE and its quirks mode).

Thanks, Death
Jan 29 '08 #4
YarrOfDoom
1,247 Expert 1GB
stupid IE and its quirks mode
I tought you used FF?
Jan 29 '08 #5
Death Slaught
1,137 1GB
I do but where I am currently the server (which isn't mine and not worth getting sued over) blocks FF because it isn't allowed through the server only the default IE..... it also blocks any website that trys to connect to a server, and it blocks messenger. So i'm forced to use the browser I loath with a piercing, burning, genocidal passion.

^_^ Death
Jan 29 '08 #6
Hi,

As for the first prob, try
Expand|Select|Wrap|Line Numbers
  1. td,tr{ 
  2.     padding: 0; 
  3.     } 
Regarding images, set their width. It might solve the prob.
Jan 30 '08 #7
YarrOfDoom
1,247 Expert 1GB
Hi,

As for the first prob, try
Expand|Select|Wrap|Line Numbers
  1. td,tr{ 
  2.     padding: 0; 
  3.     } 
Regarding images, set their width. It might solve the prob.
Didn't help, and as for the imges, they're cell-backgrounds (except for the one in the left-top-corner).
Jan 30 '08 #8
YarrOfDoom
1,247 Expert 1GB
Problem solved. I just had to set the cellspacing-attribute of my table to 0.
Jan 31 '08 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Hostile17 | last post by:
I've been trying to figure out a good way to make a CSS layout with nice-looking 1-pixel borders around the table cells. The only broadly compatible way to do this I know of is to have * the...
1
by: Alan Hoyle | last post by:
I was using a <table border> to generate borders around some info/images, and decided to follow the w3c guidelines and convert it to CSS boxes with borders since it wasn't really tabular data. ...
7
by: Stan Brown | last post by:
http://www.acad.sunytccc.edu/instruct/sbrown/stat04/qz05_.htm A table comes near the beginning of the page. I have the <td> of row 1 column 1 styled in line with border-top:none and...
7
by: Philipp Lenssen | last post by:
I created Search.CSS which grabs Google results (using the Web API), displays as XHTML1.0 Strict + CSS, and recently also adds Thumbnails....
7
by: NeverLift | last post by:
I posted a very long message regarding my experiences with JavaScript, one reply was posted asking I post an example of the problem -- and both are gone! Is there a moderator that removes such...
4
by: Will Hartung | last post by:
The designers have handed me a page that has 5 different blocks on it in the center column (in a typical 3 column layout with page spanning headers and footers). The blocks have elaborate...
0
by: M.A | last post by:
Hello, I'm joining multiple images to a whole one using Graphics classes DrawImage method. Unfortunately DrawImage leaves borders in those places where images are combined. How could I prevent...
10
by: harish | last post by:
Hi everyone, How to make a round corner dorders using div? with images or without images. Pls help me! -- harish ------------------------------------------------------------------------...
9
by: Michael Redbourn | last post by:
Hi, I just switched from FP to DW and am very very happy ! So whilst I'm mastering Dreamweaver (gonna be a while yet :-) - I thought that I'd try and find out how to add borders for browers...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.