Jump to content

knuhe

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

knuhe's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. knuhe

    Table properties

    [!--quoteo(post=372158:date=May 8 2006, 02:05 AM:name=moberemk)--][div class=\'quotetop\']QUOTE(moberemk @ May 8 2006, 02:05 AM) [snapback]372158[/snapback][/div][div class=\'quotemain\'][!--quotec--] Wow. I'm an experienced coder now? I must be doing better then I thought. [/quote] I make a habit of calling everyone who has more experience than me in something for experienced;)
  2. knuhe

    Table properties

    [!--quoteo(post=372089:date=May 7 2006, 08:55 PM:name=neylitalo)--][div class=\'quotetop\']QUOTE(neylitalo @ May 7 2006, 08:55 PM) [snapback]372089[/snapback][/div][div class=\'quotemain\'][!--quotec--] Ah, yes, the original question. :D The "padding" property will do beautifully for cellpadding, "border-spacing" sounds like it'll do the trick for cellspacing, and "border" will work well for border. :D "border" as in [code]border: solid 1px black;[/code] [/quote] Thanks! Just what I wanted:D
  3. knuhe

    Table properties

    Thanks for all suggestions! I'll have to try using div-tags on a new design. But back to topic. Since you all seem like experienced coders, I bet one of you are capable of answering my initial question? What do I have to write in CSS to get the equivalent of cellpadding, cellspacing and border?
  4. knuhe

    Table properties

    [!--quoteo(post=372079:date=May 7 2006, 08:07 PM:name=moberemk)--][div class=\'quotetop\']QUOTE(moberemk @ May 7 2006, 08:07 PM) [snapback]372079[/snapback][/div][div class=\'quotemain\'][!--quotec--] Tables are (a) very resistant to CSS design. It's easy to screw them up when you use CSS on them if you're not careful about it. (b) CSS designs are flexible-if you want to switch the left and right columns, you can. And © a lot less markup. Don't you want to stop typing <tr><td> everywhere? This and other reasons are explained elsewhere on the web-that's just the basic run-down of advantages. [/quote] I see your point. Good to get feedback from experienced coders. What do you recommend I use instead of tables?
  5. knuhe

    Table properties

    [!--quoteo(post=372072:date=May 7 2006, 07:27 PM:name=moberemk)--][div class=\'quotetop\']QUOTE(moberemk @ May 7 2006, 07:27 PM) [snapback]372072[/snapback][/div][div class=\'quotemain\'][!--quotec--] Stop using tables! Stop using tables! Stop using tables! Those are the easy answers. The other answer is to set you're cellpadding and cellspacing values to zero for all. [/quote] Since you're so determined, you may also explain why I sholdn't use tables?
  6. Strange... Have tried a few things, but it don't seem to work right. Maybe it's my code in the HTML-file that's wrong? Is this the right way to do it when I want a row in my table to change color when pointing at it? [code] <table> <tr onclick=view('./index.html') height="14">     <td class="menytabell">           <div class="meny">Hovedsiden</div>     </td> <tr> </table> [/code]
  7. Posting this in a new thread so I don't pollute the board with OT. As I said in my first post in another thread, I'm completely new to CSS, and obviously have a lot of questions. I now want to make a class-tag to define my menutables, like the one I'm been using in HTML for a while: [code] <table     width:="155" height="304" border="1" cellpadding="2" cellspacing="0"     bordercolor="#000000# id="table11" style="border-collapse: collapse" > [/code] Now I want to utilize these properties in CSS for easier editing, and i have something like this: [code] .tabellmen1 {     width: 155px;     height: 304px; <!-----{and so on....}-----> [/code] What do I have to write to get my cellpadding, cellspacing and borders right? Thank you for this valuable forum!
  8. [!--quoteo(post=372055:date=May 7 2006, 06:50 PM:name=wildteen88)--][div class=\'quotetop\']QUOTE(wildteen88 @ May 7 2006, 06:50 PM) [snapback]372055[/snapback][/div][div class=\'quotemain\'][!--quotec--] Yes use the :hover persuado class. NOTE: currently IE6 doesn't support the :hover persuado class on any tag accept the anchor (a) tag, but IE7 now supports the :hover persuado class on any tag. [/quote] Do you know is this altso applies to Firefox? I'm using version 1.5.0.3.
  9. Thanks, I tried your solution, and it ought to work, but sadly it won't:( It sees like it sticks with the [code].menytabell {        width: 149px;        height: 14px;        background-color: #EEEEEE; }[/code] and not changing the color when i move my cursor over the table element. Do you know whats going on?
  10. Hello, I'm new to CSS, and also new on this community. I'm trying to figure out how to place a onMouseOver command into one of my stylesheets. In this example I want my table column to change color when i move my mouse over it. This is the code I've made so far: [code] .menytabell {        width: 149px;        height: 14px;        background-color: #EEEEEE; } [/code] Now here comes my problems... I that code to match this equivalent, so I can save space and make my menu editings go faster: [code]<td width=149 height="14" style="background-color:#EEEEEE" onMouseOver="this.style.backgroundColor='#FFFFF0'" onMouseOut="this.style.backgroundColor='#EEEEEE'"> [/code] Can any of you help me out? Cheers
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.