Shadowing Posted June 7, 2012 Share Posted June 7, 2012 Hey guys there is still some targeting things i dont understand with CSS i guess with my logic this should work on styling the inputs inside this div tag but it doesnt. div.view_mail_buttons input{color: #E0E0E0; background:black; border: 2px outset #d7b9c9;} <div class'view_mail_buttons> <input type='submit' class='inbox_reply' value='Reply'> </div> 1 Link to comment Share on other sites More sharing options...
Don E Posted June 7, 2012 Share Posted June 7, 2012 (edited) Look a little closer at the div.. you're missing something important there.. also.. using double quotes is preferred for attributes. Hint: It goes between the attribute and the value assigned to it. Edited June 7, 2012 by Don E Link to comment Share on other sites More sharing options...
Shadowing Posted June 7, 2012 Author Share Posted June 7, 2012 (edited) lol geez didnt even notice that lol. funny there is two errors in that lol. Thanks don for replying. I was so focused on the css lol didnt check for typo's on the tag I'm returning the whole thing as a php string which im using double quotes for so i dont have to go in and out of quotes when inserting php variable example $var = "<div class='name'>$variable</div>"; other wise i would have to do $var = '<div class="name">' .$variable. '</div>'; Edited June 7, 2012 by Shadowing Link to comment Share on other sites More sharing options...
Don E Posted June 7, 2012 Share Posted June 7, 2012 Welcome. It happens to all of us from time to time.. Link to comment Share on other sites More sharing options...
Guest So Called Posted June 7, 2012 Share Posted June 7, 2012 lol geez didnt even notice that lol. funny there is two errors in that lol. Thanks don for replying. I was so focused on the css lol didnt check for typo's on the tag I'm returning the whole thing as a php string which im using double quotes for so i dont have to go in and out of quotes when inserting php variable example $var = "<div class='name'>$variable</div>"; other wise i would have to do $var = '<div class="name">' .$variable. '</div>'; I prefer to look at the HTML source produced by the PHP. Even though PHP often does not care whether single quoted or double quoted, I like all my generated HTML to be one or the other. Perhaps it's just OCD... I don't see anything at all wrong with the ' . $variable . ' nomenclature. In fact in many cases I think it makes the PHP code more readable. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now