How to add a <base target='_blank'/> code to the CSS Stylesheet
4 posters
Page 1 of 1
How to add a <base target='_blank'/> code to the CSS Stylesheet
Hello
Could someone please tell me how to add this code to the CSS Stylesheet?
<base target='_blank'/>
I can see it's not just a simple case as adding it to the top...
Many thanks,
Could someone please tell me how to add this code to the CSS Stylesheet?
<base target='_blank'/>
I can see it's not just a simple case as adding it to the top...
Many thanks,
Last edited by jkh on June 28th 2019, 7:58 pm; edited 1 time in total
Re: How to add a <base target='_blank'/> code to the CSS Stylesheet
Hello, if you want to add a CSS in HTML you need to do is add this tag_
You can also create a special and unique div for your code :
Hope it helps you
- Code:
<style>
YOUR CSS GOES HERE!
</style>
You can also create a special and unique div for your code :
- Code:
.base {
SOME SETTINGS FOR MY CODE
}
- Code:
<div class="base"><base target='_blank'/>ANY CONTENT </div>
Hope it helps you
Re: How to add a <base target='_blank'/> code to the CSS Stylesheet
Not sure which code to use.
I tried the first one and it didn't accept it...
Should I just do this?
<style>
<base target='_blank'/>!
</style>
I tried the first one and it didn't accept it...
Should I just do this?
<style>
<base target='_blank'/>!
</style>
Re: How to add a <base target='_blank'/> code to the CSS Stylesheet
I think you understood me in my last answer xDu
The HTML <style> only works if you use a CSS code like the second:
Then if you want to call your code in HTML, just add next /style your div:
P.S. You can't add a HTML Tag in the Cascading Stylesheet, because when you try to do it, the ACP will convert it automacally in a CSS to avoid problems but it may will result in a blank space sometimes.
The HTML <style> only works if you use a CSS code like the second:
- Code:
<style>
.base {
ANY CSS CODE HERE
}
</style>
Then if you want to call your code in HTML, just add next /style your div:
- Code:
<style>
.base {
ANY CSS CODE HERE
}
</style>
<div class="base"> ANY CONTENT YOU WANT HERE </div>
P.S. You can't add a HTML Tag in the Cascading Stylesheet, because when you try to do it, the ACP will convert it automacally in a CSS to avoid problems but it may will result in a blank space sometimes.
Re: How to add a <base target='_blank'/> code to the CSS Stylesheet
I'm afraid I'm still not understanding - I've put this code in the CCS stylesheet and it still won't take it.
<style>
.base {
<base target='_blank'/>
}
</style>
Do I just put it at the top (if so, it doesn't work) - or do I put it somewhere else?
or;
Do I use this code in the CCS Stylesheet?
<style>
.base {
<base target='_blank'/>
}
</style>
<div class="base"> <base target='_blank'/> </div>
If so, at the top or somewhere else?
If it doesn't go in the CCS Stylesheet at all, where do I put it?
<style>
.base {
<base target='_blank'/>
}
</style>
Do I just put it at the top (if so, it doesn't work) - or do I put it somewhere else?
or;
Do I use this code in the CCS Stylesheet?
<style>
.base {
<base target='_blank'/>
}
</style>
<div class="base"> <base target='_blank'/> </div>
If so, at the top or somewhere else?
If it doesn't go in the CCS Stylesheet at all, where do I put it?
Re: How to add a <base target='_blank'/> code to the CSS Stylesheet
You can not use HTML code in the CSS styelesheet.
What exactly are you trying to do with this code?
What exactly are you trying to do with this code?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: How to add a <base target='_blank'/> code to the CSS Stylesheet
I want to force links to open in a new tab.
Re: How to add a <base target='_blank'/> code to the CSS Stylesheet
See if this answers your question: http://webartz.forumotion.com/t1004-open-every-link-in-a-new-tab ?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: How to add a <base target='_blank'/> code to the CSS Stylesheet
SLGray - yes, that's it, many thanks!
It needed to go in overall_header.
Sorted
It needed to go in overall_header.
Sorted
Re: How to add a <base target='_blank'/> code to the CSS Stylesheet
Problem solved & topic archived.
|
Remember to mark your topic when a solution is found.
General Rules | Tips & Tricks | FAQ | Forgot Founder Password?
Team Leader
Review Section Rules | Request A Review | Sticker Points
Similar topics
» Adding code into CSS Stylesheet but when saved less than half of the whole code gets saved! Help!
» Forumotion not loading at all, blank white with no code
» Target name
» When i paste a long code via [code][/code] the page expands
» Problem with using CSS stylesheet.
» Forumotion not loading at all, blank white with no code
» Target name
» When i paste a long code via [code][/code] the page expands
» Problem with using CSS stylesheet.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum