Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Need Tips About CSS

Featured Replies

lol sorry, I kind of agree; you should post it in the forum or at least explain what the document has in it.

  • Author

Hi guys,

I am very glad that you spent your valuable time to reply my topics. Yes, your information helps me a lot. I hope you will continue help me this way in future as well.

 

Please see the following codes and response:

 

h4.footer-header{
background: transparent url(images/footer-header.png) no-repeat;

line-height:58px;

text-indent: 30px;
}

#video .play{
float:right;
margin-top:5px;
}

.mini_portfolio_item .block_inside {
background:none;

background-color:#e2dddc;

padding:25px

30px 15px 30px;

}


Why there has no gap/space between h4.footer-header?

 

But why there has a gap/space between #video .play”?

Why “id (#)” and “class (.)” both use here?


.mini_portfolio_item .block_inside

Whether both class (.) is active here or not?


No more, I am waiting for your kind response.

Thank you.

Edited by active-worker

I'm a new member but I believe it would be easier if you show us the site/blog.

If you would like to keep it private, Use PM or just upload a picture describing your problem.

Don't PM me as I have less knowledge in CSS. :-)

 

Oh, no I'm downloading it.. :)

It made me looks so newbie in this thread. :-P

 

Arick

Edited by arick

Why there has no gap/space between h4.footer-header?

Because .footer-header is a class assigned to the H4. HTML would look like <h4 class="footer-header">Headline</h4>

When you see dot in CSS (.) -this means it's a class. When you see (#), this is an id. Classes could be used more than once, and ids could be used only once to identify an element.

 

But why there has a gap/space between #video .play”?

Because #video is the id of the parent container and .play is the class assigned to the child element. HTML would look like

<div id="video">

<div class="play"></div>

</div>

In this case the author of this CSS wanted to target this particular div .play in the #video container. That is why the gap is there - if you have a gap, you target the child element.

 

.mini_portfolio_item .block_inside

Here you have a gap, too. So the author targets the .block_inside element, which is within the parent .mini_portfolio

 

If there is no gap, that means you have two or more classes assigned to the same element.

 

Whether both class (.) is active here or not?

Sorry, don't really understand that question.

 

 

Hope the above makes sense, you need to read about CSS selectors:

http://www.w3schools.com/cssref/css_selectors.asp

 

Hope that helps :)

  • Author

Hi teodora,

I want to give you thanks. Yes, now your info helps me to understand the topics. I am grateful to you. Be well.

And finally I have decided to avoid uploading .doc files in future.

I am enjoying your assistance guys!

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.