Sunday, September 11, 2011

CSS Related

// Entry for style for all elements having an id myid
#myid {
             width:550px; some-other-attribute: some-value;
}
// Entry for style for all elements having class myclass
.myclass {
width:550px; some-other-attribute: some-value;
}
// Entry for style for a tag in html body
body {
width:550px; some-other-attribute: some-value;
}
You can use divs with the float: left; attribute which will make them appear horizontally next to each other, but then you may need to use clearing on the following elements to make sure they don't overlap.  Adding Options to Select Element in Html

Adding inner html to an element in Html
document.getElementById('boldStuff').innerHTML = 'Fred Flinstone';
 
http://www.javascriptkit.com 
 
http://www.hunlock.com/blogs/Functional_Javascript 


No comments: