LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 06-30-2005, 07:55 AM   #1
J_K9
Member
 
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700

Rep: Reputation: 30
CSS - problem with margins in cells


Hi,

I have made a table and linked it to a style sheet, which contains the following code:
Code:
.Content_Table {
	background-image:url(images/Cell/bg.jpg);
	background-repeat:repeat-y;
	background-position:center;
	width:600px;
	margin: 0px 30px 0px 30px;
	text-align:left;
}
As you can see, I have tried to make a 30-pixel margin on the left and right of the cell, so that the text can look better and not so close to the edges, but this didn't work. I also tried replacing the "margin:" value in line 6 to "padding:", but this didn't work either. Any ideas? Thanks in advance,

J_K9
 
Old 06-30-2005, 10:22 AM   #2
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 32
try using margin-top margin-bottom margin-left and margin-right instead, just to see if that makes a diff
 
Old 06-30-2005, 11:10 AM   #3
J_K9
Member
 
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700

Original Poster
Rep: Reputation: 30
Oh yeah, sorry, thanks for that but I have been searching around while not on LQ and I managed to do it with the "padding-left" and the "padding-right" values. Thanks though!

J_K9
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
oocalc drop down cells zippo85 Linux - Software 1 10-13-2005 12:53 AM
problem in linking css file in xml geethu Programming 0 09-10-2005 05:51 AM
CSS: Can you spot the problem? flamesrock Programming 2 07-28-2005 02:41 PM
Problem loading css in php Runnerdave Programming 6 07-26-2005 08:27 PM
CUPS problem - page margins bitpicker Linux - Software 1 11-19-2004 03:42 PM


All times are GMT -5. The time now is 03:58 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration