Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
ab199
Full Stack JavaScript Techdegree Student 17,446 PointsIs it possible to style an embedded HTML object with CSS
Would it be possible to style this embedded object? Here's my site link with the embedded object: http://propertyflorida.co/search.html
6 Answers
Austin Rau
Courses Plus Student 8,019 PointsYes, with inline CSS!
I think...
Austin Rau
Courses Plus Student 8,019 PointsHave you tried selecting the area/class and styling from there?
ab199
Full Stack JavaScript Techdegree Student 17,446 PointsNot yet. Thanks for the awesome suggestions though! :)
Austin Rau
Courses Plus Student 8,019 PointsLike this ->
<html>
<div class="stuff">
<div> STUFFF STUFF STUFF STUFFF
</div
</div>
</html>
Austin Rau
Courses Plus Student 8,019 PointsThese small comment boxes make it hard to explain :( I'm just a n00b too. Keep on trying, don't give up!
John Locke
15,479 PointsYou can style the object, you cannot style the html inside of it, not even with inline styles and important tags.
ab199
Full Stack JavaScript Techdegree Student 17,446 PointsThese are the elements and attributes I used: object data="URL GOES HERE"> /object> embed src="URL GOES HERE" /embed> I'm aware that I didn't do a proper opening tag. For some reason the code disappears when I enter it correctly. How would I style those elements?
John Locke
15,479 PointsI went to the site link you put above and used inline style in the browser - You can style the Object element, but not the html within.
To enter proper code in the comments boxes, use Markdown syntax, just indent all code blocks 4 spaces.