flynch01
02-13-2008, 07:44 PM
If you look here:
http://www.neetlife.co.uk/index.php?id=forums
http://www.neetlife.co.uk/index.php?id=register
The page looks fine in firefox, but not in IE. Whats causing it?
jcdevelopment
02-13-2008, 08:07 PM
first problem with the top articles, here try this
.newsArticle
{
background-color: #333;
border: 1px solid #000;
padding: 0px;/*changed*/
margin-top: 1px;
font-size: 11px;
position: relative;
text-align: left;
}
second, do you know the name of the tables that are under the div article?
edit: ok they are hard coded in nevermind!!
flynch01
02-13-2008, 08:10 PM
Which ones? The ones the forum are made from?
jcdevelopment
02-13-2008, 08:12 PM
yeah, but they have no classes assigned to them so, i cant figure out why. I have messed with the main container and nothing seems to be working, i will keep looking though!!
flynch01
02-13-2008, 08:20 PM
I didn't assign any classes to the tables, I didn't think I needed to really. The only things I did for tables is cellpadding 0 and cellspacing 0, and maybe added a border. but thats it. Thanks for helping though =D
jcdevelopment
02-13-2008, 08:26 PM
ok, this looks to fix it but look to see if it does the same, because it causes another problem maybe!!
.tableContent table {
width:auto;
}
flynch01
02-13-2008, 08:29 PM
Oh it fixed it. Wow thanks. Whats the prob it can cause? :D
Also, i've never seen that css syntax before. What is it? =/ I thought it was like table.tableContent
jcdevelopment
02-13-2008, 08:34 PM
well, your way is probably better to use instead of my syntax.
The problem was that when i did it the tablecontainer become a tad bit smaller, but thats fine if it works on yours, i was using cssvista, and sometimes it lies!!
Apostropartheid
02-13-2008, 09:55 PM
Ah, no, you see...
table.tableContent refers to any <table> element with a class of tableContent.
.tableContent refers to ANYTHING with a class of tableContent. It's basically *.tablecontent.
jcdevelopment
02-13-2008, 10:09 PM
ahhh, basics of CSS. Over my years of developing i always like to learn new things. I dont claim to know everything and i like to learn where i can improve. I did not even know that. Thank you Cyan!!
flynch01
02-14-2008, 03:50 PM
So:
.tableContent table
just refers to any table within an element with .tableContent as the class. Right?
abduraooft
02-14-2008, 03:55 PM
So:
.tableContent table
just refers to any table within an element with .tableContent as the class. Right?
Right!
flynch01
02-14-2008, 07:58 PM
Ah nice one thanks, learn something new every day :D I wonder why that wasn't in the tutorials. Ah well.
Thanks for help everyone.