|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
I have a table design for my website. I have every cell with no cell padding. I want to make the content cell have a cell padding of 5. How can I do this, but keep every other cell with no cell padding? HTML and CSS class would be awesome
![]() Last edited by baseballdude_ : March 1st, 2005 at 07:24 PM. Reason: messing around... |
|
#2
|
||||
|
||||
|
use css classes:
Code:
/* stylesheet */
td.content { padding: 5px; }
and then in your document: Code:
<td><!--nothing here--></td> <td class="content">Content goes here</td> |
|
#3
|
||||
|
||||
|
CSS doesn't work well with formatting tables... as tables arn't meant to be used for page layout!
baseballdude: Post your page code and I'll "semantify" it... I need a challenge ![]() |
|
#4
|
||||
|
||||
|
Quote:
lol sounds like you're quite bored in your Web Cave... hope it's not very dark in there? I'm afraid of darkness! ![]() |
|
#5
|
||||
|
||||
|
Well, lol, alright then...
Code:
<link href="myquiz.css" rel="stylesheet" type="text/css">
<html>
<head><title>Quiz Me!</title></head>
<body background="pics/bg.png">
<table align='center' width='750'><tr><td>
<table cellspacing='0' width='100%'><tr><td height='50' border='0'></td></tr><tr><td bgcolor='lightblue' colspan='3'><font size='5'> Quiz Me!</font></td></tr><tr><td rowspan='20' bgcolor='lightblue' width='5px'></td><td bgcolor='#FFFF99'>
<%
Select Case LCase(Request.QueryString("a"))
Case "confirmation"
%>
<!-- #include file="confirmation.asp" -->
<% Case "quiz" %>
<!-- #include file="quiz.asp" -->
<% Case Else %>
This is the coolest place in the world.<br><br>Take my <a href='index.asp?a=quiz'>quiz</a>!
<% End Select %>
</td><td rowspan='20' bgcolor='lightblue' width='5px'></td></tr><tr><td colspan='3' height='15' bgcolor='lightblue' height='5px'></td></tr></table></td></tr></table>
<span style='font-size: 0px'>
|
|
#6
|
||||
|
||||
|
Though, the css class works just fine
![]() |
|
#7
|
||||
|
||||
|
Erm... thats not your entire page code is it? Where's the closing </body></html> elements?
|
|
#8
|
||||
|
||||
|
That's it. I leave it open because its a free webserver and they add a link at the end. To fix that, I simply added <span style="font-size: 0px;"> and left it open so it isn't displayed.
|
|
#9
|
||||
|
||||
|
Quote:
lol nice trick... ![]() |
|
#10
|
||||
|
||||
|
TEST
![]() ![]() TEST |
|
#11
|
||||
|
||||
|
Quote:
lol!! doing experiments with invisible text eh? I wonder what other tricks you got in your sleeves... ![]() |
|
#12
|
||||
|
||||