-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
css issues #11
Comments
yeah the body class is not working for me too. You make a different class. #bodyBG
{
//Content
} and then in the html tag you give < body id="bodyBG" > |
@Poirot1729 while I am not exactly sure, |
Try |
Using of id's and class wisely saves time a lot.
Like if you want to create a card like thing.. and if there are several sections, HTML
And for styling it, if one is using id's only then
With the use of class, it simplifies to
Another advantage is that if you want to add one more section , just give it class "card" . No need of editing CSS everytime. |
The ID Selectors
This rule renders the content in black for every element with id attribute set
This rule renders the content in black for only
In this example, all level 2 headings will be displayed in black color when those Something I just read. |
@bineeth923 tried |
@MashalMohamed
Now you are just creating a static site, so there won't be much problem. But as the time progresses both editing and documentation of this site will be very difficult. |
@MashalMohamed the html you are working with.. it's in pushed in GitHub right? |
I just went through the project. |
I have tried absolute pathing. Doesn't work. |
In your body tag, an inline CSS is present
I'm attaching a demo, check it out. |
There is one more issue. We are using 2 css file for the same page, one from bootstrap and other one we made, that is why there is issues in CSS? Any workaround? Or should we merge it into the bootstrap css? |
Cascading Style Sheets.
So @Poirot1729 , just load the bootstrap CSS first, then load your CSS file. And if you want to change any property of bootstrap's, then change it in your CSS. Just for a note... even the simplest HTML document may have three or more style sheets associated with it including:
|
inline css is working fine for both bg image and color.
i cant put background image or background color, via home.css:
this too , not working:
background-image:url(/assets/images/bg.bmp);
btw, me newbie
The text was updated successfully, but these errors were encountered: