Two Codes Are Interfering With Each Other
3 posters
Page 1 of 1
Two Codes Are Interfering With Each Other
I have a code that is interfering with another code this code below moves my toggle category buttons over the category title
- Code:
.main-head .page-title {
box-shadow:0px 2px 2px rgba(0,0,0, 0.3) inset;
background:rgba(0,0,0, 0.3);
border-radius:4px !important;
display:inline-block;
padding:4px;
}
Last edited by SLGray on January 22nd 2014, 3:36 am; edited 4 times in total (Reason for editing : code went wacko weird)
Re: Two Codes Are Interfering With Each Other
Try this:
- Code:
.main-head .page-title {
box-shadow:0px 2px 2px rgba(0,0,0, 0.3) inset;
background:rgba(0,0,0, 0.3);
border-radius:4px !important;
display:inline;
padding:4px;
}
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: Two Codes Are Interfering With Each Other
Are you sure that these two codes are interfering with each other?
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: Two Codes Are Interfering With Each Other
yes because If I remove the code that stick the boarder around the category text the toggle button goes back to its correct spotSLGray wrote:Are you sure that these two codes are interfering with each other?
Last edited by BewizPro on January 22nd 2014, 3:56 am; edited 1 time in total (Reason for editing : typo error)
Re: Two Codes Are Interfering With Each Other
Hello,
The reason this occurs is because you're displaying the title as an inline element while it is usually displayed as a block level element. Now when it is displayed as a block it spans from left to right depending on its parents size. Your category toggler is appended to the title which is why it is attached to it, or conflicting as you have said. In fact it is not conflicting with anything since the script you're using has appended it to the title.
When you display it is an inline element it will only take up space depending on its contents. If you wish you can see how it looks displayed as a block level element.
The reason this occurs is because you're displaying the title as an inline element while it is usually displayed as a block level element. Now when it is displayed as a block it spans from left to right depending on its parents size. Your category toggler is appended to the title which is why it is attached to it, or conflicting as you have said. In fact it is not conflicting with anything since the script you're using has appended it to the title.
When you display it is an inline element it will only take up space depending on its contents. If you wish you can see how it looks displayed as a block level element.
- Code:
.main-head .page-title {
box-shadow:0px 2px 2px rgba(0,0,0, 0.3) inset;
background:rgba(0,0,0, 0.3);
border-radius:4px !important;
display:block;
padding:4px;
}
Re: Two Codes Are Interfering With Each Other
May I ask, have you removed the code that you originally posted above before testing ?
Re: Two Codes Are Interfering With Each Other
Well, since your button is appended to the title you could try positioning absolutely inside the main header.
For example :
Then just readd your old CSS for styling the title.
For example :
- Code:
.page-title { position:static !important; }
.main-head { position:relative; }
.contract, .expand {
position:absolute;
top:5px;
right:5px;
}
Then just readd your old CSS for styling the title.
Re: Two Codes Are Interfering With Each Other
the code will not move the toggle button I'm not sure what the issue isAnge Tuteur wrote:Well, since your button is appended to the title you could try positioning absolutely inside the main header.
For example :
- Code:
.page-title { position:static !important; }
.main-head { position:relative; }
.contract, .expand {
position:absolute;
top:5px;
right:5px;
}
Then just readd your old CSS for styling the title.
Re: Two Codes Are Interfering With Each Other
It could be coming from your script to append the button, then.
Re: Two Codes Are Interfering With Each Other
Then add this back in to style the page title :
That is what you wanted to do, no ? Otherwise you will not see any changes.
- Code:
.main-head .page-title {
box-shadow:0px 2px 2px rgba(0,0,0, 0.3) inset;
background:rgba(0,0,0, 0.3);
border-radius:4px !important;
display:inline-block;
padding:4px;
}
That is what you wanted to do, no ? Otherwise you will not see any changes.
Re: Two Codes Are Interfering With Each Other
I added that code back in my very first post and no luck I have messed with the numbers to see if that will move the toggle and nope its stuck right there in that corner.Ange Tuteur wrote:Then add this back in to style the page title :
- Code:
.main-head .page-title {
box-shadow:0px 2px 2px rgba(0,0,0, 0.3) inset;
background:rgba(0,0,0, 0.3);
border-radius:4px !important;
display:inline-block;
padding:4px;
}
That is what you wanted to do, no ? Otherwise you will not see any changes.
Re: Two Codes Are Interfering With Each Other
still nothing that is strange once I remove the code the toggle goes back to the right spot I don't know what code that I'm running would be interfering with it.
Just like if I disable the forumotion bar at the top it knocks out the toggle button completely.
Just like if I disable the forumotion bar at the top it knocks out the toggle button completely.
Re: Two Codes Are Interfering With Each Other
You did this ? :
- Code:
.page-title { position:static !important; }
.main-head { position:relative !important; }
.contract, .expand {
position:absolute !important;
top:5px !important;
right:5px !important;
}
.main-head .page-title {
box-shadow:0px 2px 2px rgba(0,0,0, 0.3) inset;
background:rgba(0,0,0, 0.3);
border-radius:4px !important;
display:inline-block;
padding:4px;
}
Re: Two Codes Are Interfering With Each Other
that right there solved the problem
Thanks for all your help. Sorry if I drove you bonkers lol
Thanks for all your help. Sorry if I drove you bonkers lol
Re: Two Codes Are Interfering With Each Other
You're welcome, don't worry about.
Topic solved and archived
Topic solved and archived
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum