Ryan Christiani

Ranch Hand
+ Follow
since May 15, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ryan Christiani

Thanks for the info, link makes more sense, wasn't aware spans were not keyboard accessible.

I originally had it as,



but it would not load the script for some reason, from the net panel in firebug the page did fully load.

In terms of the detail sibling. So say I have this.



How would I go about setting that to expand. I am a little confused on that works, I have tried it and it did not seem to work out.
Actually I solved it, sort of, but this just brings up some more questions.


I moved my span into the container that has the expanding div in it. In a case like this does the element to activate the script have to be right before the element that will be activated? Does that make sense, how can I have a link that toggles from another location?

Thanks.
Hi,

I am working on a site for a job, wordpress site.

They want "..." to activate a expanding div with more info in it, code like such.



The ellipsis

The div that expands.



Problem is the "..." does not activate the script, does this have something to do with text as the element that has to be clicked? or have I just made some werid mistake?

Thanks
Hi guys,

Bear you helped me with this a little while ago, were you said that I could use [] as a reference operator to something like:



I know it doesn't just apply to style, but is that something you guys go over in this book?

Thanks!
CSS reset

If GETSUGA.css is all the css you have for the page put a css reset in there, it strips the page of predefined rules and lets you set it up the way you want.

Try that.

Try putting the body padding to 0.

Also look into media queries for the other portion of your question.
Good article
Awesome, that is very helpful.

Thanks
awesome thank you!

What makes that work exactly? What do the [] signify with style? My thinking is that it is an array cause of the [] ?
Question.

I know you can style an element like

element.style.backgroundcolor = ...

what are you not able to put the .backgroundcolor into a variable like such...

var bgcolor = "backgroundcolor";
element.style.bgcolor = "red";

I tried it and it doesnt seem to work, I was more or less wonder why not?

Thanks
ahhh appendChild().

some fooling around on lunch at work seems to have helped me there.

Thanks.
Well I would like to try and learn the basics of javascript instead of just relying on jQuery, but yeah, you were saying in another one of my threads to save time and effort using jQuery.

Lets say I want to keep going like this, how exactly do I inject it into the DOM? I assumed that is what the insertBefore method did, you provide it with the new element and the element to have it come before.
I am trying to create a div and insert it before the end of the body.



Code is like such, newCloud is the new element, and ground is a div that I have on my page. When I test it I get "Node was not found".



HTML like this.

I assume the parent node in is the document?

Thanks
That makes sense,
Thank you.
I have question about getElementById().

In my HTML I have a div with an Id of cloud1,


like such.

In my javascript I have this.


But it seems cloud is null...

Thoughts? Something I have overlooked/stupid mistake?

Thanks