- This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
If my body css is:
body {
background: #ffffff;
color: #3a3a3a;
font-family: Open Sans,sans-serif;
font-size: 16px;
font-weight: 400;
height: 100%;
margin: 0;
overflow: auto;
padding: 0;
width: 100%;
}
Will all my text be that color, size and family through out my entire website unless i change it like here:
.content a {
color: #3394de;
text-decoration: none;
}
Thanks
Basically, yes.
May I ask what basically means. Is that not the best option.
Thanks
If there is no reset or normalize CSS, then except for sizes on headings like <h1>Heading</h1>
e.o. and maybe also form element sizes, and colors on links (that are not within this .content
wrapper) – which will be styled by browsers’ default CSS stylesheets. So yes values for font-family
and color (except on links) will be inherited, but things like font-weight
on labels and b
or strong
tags and again also headers will most likely be styled by the browser with font-weight: bold
.