PDA

View Full Version : CSS help


Ngreth Thergn
11-07-2004, 11:24 AM
ok, having an issue with CSS giving me fits...

I have the following code:

.itembox {width:300px; border:solid 2px #A09B7D; background-color:black; color:white; padding:2px}

but the border is not showing. Am I missing soemthing obvious?

Krazick
11-07-2004, 12:03 PM
First, if you specify an HTML element like <div class="itembox"> the proper CSS tagging is:

.itembox {.....}

Although you can be a bit more exact with:

div.itembox {....}

If, you instead tag the div as: <div id="itembox"> then you specify the CSS as:

#itembox {....}

And more exact:

div#itembox {....}

The only issue with the id= bit, is you can only have one id="itembox" in your entire HTML page. I would lean more to the class="itembox" solution.

As for it not working otherwise, I am not sure if a DIV tag will do anything with the border or not. But width and background-color should be applied. If this still does not work, try removing the border:none; out of the CSS and see what happens.

Zendaken
11-07-2004, 02:33 PM
Try putting a semi-colon after the 2px for padding at the end inside of the brace.

fredrikL
11-07-2004, 04:46 PM
I tried it in one of my pages, and it looks ok.
What browser are you having problems with ?
Often Internet Explorer likes stuff that Netscape doesn't like. Could be something like that. Give us more details ;)

Speaking about details:

I use the code <div class="itembox"> that Krazick mentioned above. It works for me on IE 6.0, I dont have Netscape at home so I can't try it there.

After thinking about this for a while I seem to remember having some kind of problems with borders in Netscape. I couldn't use the same tag that worked for IE, I needed two different tags. Unfortunately all my 'Artisan Books' are at work and my memory is not what it used to be.
If I have time I will check it out tomorrow.

Ngreth Thergn
11-07-2004, 10:03 PM
I am using this now:

.itembox {width:300px; border: 3px solid #A09B7D; background-color:black; color:white; padding:2px;}

It did not work when I left to work and closed all browser windows, came home, and it was working, made a change, refreshed the page, it did not change... went to a differnt search with the same.... no change... closed the browser, opened again, the change was in. like it was caching the CSS.

Weird.

Thanks guys :)

Niami DenMother
11-07-2004, 10:27 PM
It did not work when I left to work and closed all browser windows, came home, and it was working, made a change, refreshed the page, it did not change... went to a differnt search with the same.... no change... closed the browser, opened again, the change was in. like it was caching the CSS.

Noooooooooo!! Ngreth's been with me to long and my negative computer karma is rubbing off on him!!!

{wails}

I OFTEN (and I mean often) have all sorts of inexplicable odd things happen with my computers. The moment I whimper for help, or bring hubby up to see what it's doing *this* time, it often behaves. Sometimes it continues to flake out, and drives every expert that we consult berk, then will suddenly start behaving again.

xirxx
11-07-2004, 10:43 PM
I find that most users at work have that same issue. Call me over, they try to repeat the problem, the problem is no longer occurs.

Easiest fixes I ever have to do. :)

Torval the Harvester
11-07-2004, 10:48 PM
I find that most users at work have that same issue. Call me over, they try to repeat the problem, the problem is no longer occurs.

Easiest fixes I ever have to do. :)

That just proves my theory that 90% of tech support relates to some genetic advantage where you just give off some hormones or something that computers can sense and which makes them behave. As soon as we isolate the genes that contribute to this effect we will enter a new technological era in which the bloody things cooperate for everyone.

mebrhea
11-07-2004, 11:32 PM
or the computers are just cowering in fear...

Ngreth Thergn
11-08-2004, 09:34 AM
Get your Karama away! keep it to yourself!!!! aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa a!

xirxx
11-08-2004, 10:15 AM
lol

Inyidd
11-09-2004, 09:48 AM
Get your Karama away! keep it to yourself!!!! aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa a!

Ngreth has cooties!!!!

--Inyidd, the Untouchable

Niami DenMother
11-09-2004, 02:24 PM
I find that most users at work have that same issue. Call me over, they try to repeat the problem, the problem is no longer occurs.

Easiest fixes I ever have to do. :)

You see, that's EXACTLY the problem. I worked one too many computer miracles for frightened compuphobic university librarians during my younger years and used up allllllll my good computer karma getting things to work that shouldn't have, giving various computers and dumb terminals dirty looks that made them immediately start working, being lavished with anonymous chocolates left on my desk from the grateful hordes (I'm serious - the guy they had doing it before me was rude and belittled them), and so on.

Used it alllllll up ... now I'm working with negative computer karma.

I *should* have finally balanced the scales, given the last year or so's computer mishaps. {crosses fingers, toes and eyes}

Lordebon
11-09-2004, 06:39 PM
It's ok mum =)

Karma's a wheel, so you have to start going back up sometime ;)

...

For you, it may take a while for the wheel to get going... for me, it must spin ten revolutions a day ;)

Spyke
11-11-2004, 03:32 PM
You'd think that Lordebon...

...But I'm not so sure in regards to Niami and her computer karma. I think it just cycles between "stuff blowing up" and "stuff mostly working"

Trust me... back when I was living closer to them on either side of the country, I'd be over at their place trying to help Ngreth with some of the weird problems that her machines would come up with.

I don't think I've used the phrase "delete and reinstall" since when I was working at AOL for tech support.

:D

Marishka
11-12-2004, 05:45 AM
Sometimes you can use computer karma to your advantage. Often times if I do something with my computer that causes an error or probelm that I can't explain, I'll cause it again. And again. And again. As long as I'm not harming anything (which I know when things are) eventually karma kicks in and the computer behaves again. Haha!

Niami DenMother
11-23-2004, 12:00 PM
I OFTEN (and I mean often) have all sorts of inexplicable odd things happen with my computers. The moment I whimper for help, or bring hubby up to see what it's doing *this* time, it often behaves. Sometimes it continues to flake out, and drives every expert that we consult berk, then will suddenly start behaving again.


{sigh} Of course this was very prophetic. Over the weekend, the machine that I use to "work" from while doing research in-game on the other machine (and or while out harvesting and half-playing, half-working) decided to go belly-up.

Last rites have been given. The replacement machine is being installed, configured, etc., etc. now.

Lordebon
11-23-2004, 01:54 PM
*gets out a trumpet and plays Taps for the fallen soldier*

Poor 'Mum, she tries to multitask and this is what she gets http://mboards.eqtraders.com/eq2/images/smilies/frown.gif

Now... totally unrealated... something for the history buffs...

Under whos command was Taps first used (for anything)? Highlight below for answer...

General Daniel Butterfield (Third Brigade, First Division, Fifth Army Corps, Army of the Potomic).