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

HTML

Is 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

Yes, with inline CSS!

I think...

Have you tried selecting the area/class and styling from there?

Not yet. Thanks for the awesome suggestions though! :)

Like this ->

<html>

<div class="stuff">

<div> STUFFF STUFF STUFF STUFFF

</div

</div>

</html>

These small comment boxes make it hard to explain :( I'm just a n00b too. Keep on trying, don't give up!

You can style the object, you cannot style the html inside of it, not even with inline styles and important tags.

These 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?

I 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.