Page 1 of 1

css problemer

Posted: 23 Oct 2008, 15:17
by Crisium
Hej Alle,

Har lavet følgende eks.

Code: Select all

<table class='fieldarea2' >
<tr class='tr-test' >
<td class='td-test'>
<label class='textbox_border2' >Hello</label>
</td>
</tr>
</table>
med css:

Code: Select all

.fieldarea2
{
	width:50%;
	padding:0;
	margin:0;
	border:0;
	border-collapse:collapse;
	background-color:silver;	
}

.tr-test
{
	padding:0;
	margin:0;
	border:0;
	background-color:yellow;
}

.td-test
{
	padding:0;
	margin:0;
	border:0;
	background-color:green;
}

.textbox_border2
{
	font-family:Verdana,Tahoma,Arial,Sans-Serif;
	font-size:100%;
	width:100%;
	height:100%;
	padding:0;
	margin:0;
	border:0;
	border-color:red;
	background-color:Aqua;
}
men jeg får stadigvæk en grøn streg under ordet hello?? hvorfor?
jeg brugt IE... problem også på chrome.

nogen der kan hjælp mig?
mvh,
Peter

Re: css problemer

Posted: 24 Oct 2008, 09:40
by Niels Jørgensen
CSS er altid "sjovt" at få til at virke som man gerne vil have det til :)

Et vildt gæt kunne være en "font-style: normal", men ellers kan jeg varmt anbefale

http://www.w3schools.com

Der er nogle geniale reference manualer for alt web relateret.

Re: css problemer

Posted: 25 Oct 2008, 21:45
by Crisium
ja,.. font-size var skurken... men har lavet det om til css

(ok back to english)

tables have too many problems on different browsers and OS's
everybody is yelling use CSS instead of tables.. ok I did... and
all my work results in that CSS isn't any better.. actually in some
cases worse!

It's almost impossible to get dynamic resizing to work as you want
when creating a so called "table" using css.

CSS is NOT the same on all browsers!

The only benifit I could see is small files and simplier html code (uniform).

my two cents,
Peter

Re: css problemer

Posted: 27 Oct 2008, 10:37
by Niels Jørgensen
He, I'm an old-school table guy myself and though I can definitely see the benefit of CSS, I would never use it as my primary means of layout.

But then again, I'm still editing HTML in notepad, so my opinion hardly counts as state of the art :)...

Re: css problemer

Posted: 10 Dec 2008, 06:33
by gangotri
If HTML is so out-dated why do they still teach it in college instead of CSS? Every time I ask a HTML question I get the same old "no one uses html anymore" answer, but that's what they teach in the University of Phoenix Online, Information Technology: Visual Communications course. If it's so outdated why don't they teach CSS instead?

Re: css problemer

Posted: 10 Dec 2008, 09:55
by Zee
gangotri: CSS is not a successor or replacement of HTML it is used to manage the layout/style of e.g. your website, and thereby also your HTML code. So no one should be taught CSS instead of HTML but they should be taught HTML + CSS.

Re: css problemer

Posted: 14 May 2009, 09:25
by eveniax
How to put a 15 px space between two pictures using div tags and CSS? I have to put three pictures on my website with 15 px in between each picture. I have to use div taghs and CSS to do this. I have searched all over and cannot figure out how to do it. I am using Dreamweaver by the way.
__________________________
yahoo keyword tool ~ overture ~ traffic estimator ~ adwords traffic estimator

Re: css problemer

Posted: 16 May 2009, 00:22
by simtex
I don't know if this is what you want, but i would use the padding property.
E.g.

Code: Select all

<style type="text/css">
<!--
img {
	padding-top: 0px;
	padding-right: 7.5px;
	padding-bottom: 0px;
	padding-left: 7.5px;
}
-->
</style>