Page 1 of 1 [ 5 posts ] 

JakeGrover
Sea Gull
Sea Gull

User avatar

Joined: 21 May 2010
Age: 27
Gender: Male
Posts: 221
Location: Vermont, USA

19 Sep 2010, 6:17 pm

Hello! Can any of you guys help me with some inheritance "problems"?
---------------------------------------------------------------------------------------------------------------------------------

<h3 class="sitebe">What <i>will</i> this site be?</h3>
<p>Here's what I'll probably have on my site when it's finished:</p>
<ul>

<li>
Freeware
</li>
<li>
About Me
</li>
<li>
Blog
</li>
<li>
Photos
</li>
<li>
File Server
</li>
<li>
Mail Server
</li>
</ul>
------------------------------------------------------------------------------------------------------
I'm using some CSS for the class applied. But, the other's don't seem to be inheriting it. I can understand the ul inheritance and why it's not working, But, should the p element inherit from the h3? Or are the both block elements? Can somebody just help me do this code?



mcg
Veteran
Veteran

User avatar

Joined: 26 Jan 2010
Age: 35
Gender: Male
Posts: 538
Location: Sacramento

19 Sep 2010, 7:00 pm

The p and ul are not child elements of that h3 so they will not inherit from it.

You want to set the class attribute on the parent element of everything right there (body maybe?).



JakeGrover
Sea Gull
Sea Gull

User avatar

Joined: 21 May 2010
Age: 27
Gender: Male
Posts: 221
Location: Vermont, USA

21 Sep 2010, 3:24 pm

I have another question. When I apply the class to the elements I want to select and make a box for them, the box is divided when shown with a border around it. Is there anyway to get one big box for all of the elements in the class?



t0
Veteran
Veteran

User avatar

Joined: 23 Mar 2008
Age: 51
Gender: Male
Posts: 726
Location: The 4 Corners of the 4th Dimension

21 Sep 2010, 6:11 pm

Can you group them inside a div or span and put your border around that instead?



JakeGrover
Sea Gull
Sea Gull

User avatar

Joined: 21 May 2010
Age: 27
Gender: Male
Posts: 221
Location: Vermont, USA

22 Sep 2010, 12:31 pm

t0 wrote:
Can you group them inside a div or span and put your border around that instead?

That would make sense.