HTML question
- Started
- Last post
- 6 Responses
- CygnusZero4
In the html code below, how would you add some space below it, and the elements below it? Adding padding or margin to the inline style code isnt working.
<font size="2" face="Arial" color="#00338d" style="line-height:18px;text-transform:uppercase;">QBN</font>
- nb0
I suppose one way is to stop using <font> although that doesn't really answer your question.
- CygnusZero40
Cant. Stuck in an ancient CMS and its the only way to do anything custom in it. I have no access to the backend CSS so it has to be this way.
- estetic0
Set the element to display:block - pad and margin away...
- estetic0
If you need to deal with multiple elements declare css in a stand alone <style> block above the content and use the correct css selectors or add classes to elements. This is all super hack but if you don't have any options have at it.
- Im in a CMS. I have no access to page header code.CygnusZero4
- You can declare <style> blocks within the body - http://codepen.io/an…estetic
- It doesnt work in this CMS. Trust me. It strips out all kinds of stuff.CygnusZero4
- Its a custom version of sharepoint 2007. Its a piece of shitCygnusZero4
- Maaku0
Not a good hack but adding <br/><br/> could do the trick. But again, I don't think it's a good practice.
- bklyndroobeki0
<p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p>
just kidding.
- sorry for trolling your thread. nice estetic,
carry on!bklyndroobeki - Ah yes, Dreamweaver, I see.nb
- sorry for trolling your thread. nice estetic,