Table in Joomla not resizing properly? - html

I am currently trying to use Joomla to create a simple website. I uploaded Joomla Extension Survey called Form Maker Lite for the purpose of creating a survey/questionnaire.
I published this extension to my Joomla based website, unfortunately I am unable to resize the table. I tried using width: px to resize the table, however it did not working.
Here is the current auto-generated CSS of the table:
#form10 .wdform-matrix-table {
display: table;
border-spacing: 0px
}
I am having trouble copying the HTML here so I tried using this (results did not come out as expected, it was meant to appear in the form of a table) - My JSFiddle
I also tried using table-layout: fixed; overflow: hidden; but unfortunately that did not help re-size the table. I want to make the width of the table shorter.
Unfortunately I am unable to provide access to the website because I do not have full control/permission over the publicity of the link :(. My apologies.
Any help/advice/solutions would be appreciated.

Having had a quick look at the component, the following styles seem to set a width of 100% pixels to the form by overriding the default settings.
<style>
.wdform_section {
width:100% !important;
}
.wdform_column {
width:100% !important;
}
.wdform-field,.wdform_row {
width:100% !important;
display:block !important;
}
.wdform-element-section {
width:80% !important;
}
.wdform-label-section {
width:20% !important;
}
</style>
As far as I can tell Form Maker Lite adds inline styles to the form elements, which you don't seem to be able to edit, which is why you need !important to override them.
The above styles are over-writing the default "contact" form it has in the Joomla 2.5 version. It may churn out different code for different forms.
If you don't already have it, I'd recommend installing firebug to look at what css it is generating. That can make overriding css far easier.

Related

Delete a CSS propery you dont have access to edit

I have made a complete Bootstrap grid system. I am now uploading my code to a CMS system, and can see there is some CSS from the backend, there is messing up my grid.
If I untick the following code in the inspector window, everything is looking perfect. When the following code is ticked in the inspector window everything is messed up. Is it possible to overwrite this code somehow, so the class is not used?
.cms-area img {
width: 100%;
}
You can use !important in such cases but use it sparingly. Best is to remove the unwanted code and not use !important. !important might cause issues later that are difficult to debug. If possible include your css after other css is included in the code. In CSS, rules that appear later take precedence over earlier rules
Edit:
Set width to auto instead of 100% to fix your alignment issue
Below given is the ideal way to manage css since it allows you to attribute your style content and lets you override the style already applied elsewhere.
.cms-area .your-class img {
width: <your choice>;
}

bbPress css - theme has hidden breadcrumb

I have installed bbPress in my website and my theme override some bbPress css which I do not want.
The forum breadcrumb is hidden with the following code:
div.bbp-breadcrumb, div.bbp-topic-tags {
font-size: 12px;
}
bbpress.css?ver….5.14-6684:404
div.bbp-breadcrumb {
float: left;
}
vlog-bbpress.css?ver=1.8.1:335
.bbp-breadcrumb {
display: none !important;
As you can see in the picture the CSS comes from two different files:
bbpress.css
vlog-bbpress.css
Somehow the rendering seems to override bbpress.css.
What code should I use to make the breadcrumb visible?
Having installed a plugin (Simple Custom CSS) to write custom css, what should I write there in order to have the forum breadcrumb visible?
Please look at the real website here http://italiancrypto.it/forums/
The breadcrumb is hidden by:
.bbp-breadcrumb {
display: none !important;
}
What you see is that it is addressed by one class, and an !important. One class isn't a problem, but !important is (and is generally viewed as bad practice).
The easiest way to overcome this, is by addressing the same bbp-breadcrumb with an extra class, that's above it. For example:
.entry-content .bbp-breadcrumb {
display: block !important;
}
You could also use the above ID of bbpress-forum, but that is generally viewed as bad practice as well. Then again, desperate times call for desperate measures ;-)
Try add an id to the class .bbp-breadcrumb with JS
document.querySelector('div.bbp-breadcrumb').id = 'breadcrumb';
this will add the id to the element, then in your css use
#breadcrumb {display:block !important;}
since the id takes precedence over class I think this should work.

Div moving towards left on screen resize

I am working on website http://torquebranding.com/ , Images under THE PROCESS sections transferring to left as soon as screen resized.
I tried
margin-left:auto;
margin-right:auto
to make it center aligned , but failed.
Any suggestions ?
Thanks
You have this rule in your css. If you override it or remove it, the images are centered
processTabs {
margin-left: 50px;
}
Here are before and after pictures - see the processTabs rule in the dev tools side bar. In the before picture, the class is checked and in the after the class is disabled.
Your page is using different media styles with different page sizes.
For example, I have changed .processTabs added margin in media version 1.0.0.193. It works. Also, it is always good to use percentage instead of using px.
.processTabs { margin: 0 -2%;}
(sorry, had an error due to copying in there - edited... -> 0px )
This rule:
.processTabs
{
margin-left: 50px;
}
is included as an inline style (maybe added dynamically by some plugin or framework) in your HTML document, on line 689. This causes the problem you wrote about in the question. To fix it, remove that rule, or if can't do that (because of some plugin adding it) overwrite it with the following in your stylesheet:
.processTabs
{
margin-left: 0px !important;
}

Can anyone help a newbie write the custom css code? (style inherited border on widget)

I am learning as i go for a new website i am working on, never done custom css before. (am noob, please be nice)
Using Theme bemart from themeforest, Kingcomposer Pro, and wordpress.
(current plugin for widget css is zigwidgetclass)
www.aboutautomation.com.au (for inspect element)
I am trying to remove the border on just ONE widget on the side bar (custom_html-9) it is currently being inherited from the theme customisation and when edited will change all borders, which is undesirable. i am wanting to either make this a css class for this widget either making it #ffffff
but i cant manage to get it going, the only thing i have managed is to make it disappear completely with
.hide {
border: #ffffff; }
i am not even sure how that happened?!
does have a custom css on it already hide_on_mobile
#media only screen and (max-width:768px) {
.hide_on_mobile {
display: none !important;}
}
I'd go with:
#custom_html-9 .custom-html-widget {
border: transparent;
}
The contents shift if you removed the border completely (as they take up space) so set the border to transparent so you cannot see it but continues to take up space.
You could also use any combo of CSS classes on the parent aside elements and the inner div. Some other options include:
.sidebar .widget_text .textwidget
.sidebar .widget_text .custom-html-widget
.sidebar .widget_custom_html .textwidget
.sidebar .widget_custom_html .custom-html-widget
The current border is being applied with multiple CSS selectors and it looks like you'll need at least 3 classes or an ID in your selector in order to override the original.

Kendo CSS icon location

I have changed the font size on my Kendo grid to 11 and by doing so, the calendar icon on a datepicker textbox gets cut off at the bottom. I was able to move the icon up using margin-top when you hover over it with the following code, however I am not able to figure out how to get it moved up in just its normal state.
.k-link:not(.k-state-disabled):hover>.k-i-calendar,.k-state-hover .k-i-calendar,.k-button:hover .k-i-calendar,.k-textbox:hover .k-i-calendar,.k-button:active .k-i-calendar{
background-position:-48px -176px; margin-top: -6px;
}
See example: http://jsbin.com/ufimom/592/edit
Try this,
.k-i-calendar {
background-position: -32px -176px;
margin-top: -6px !important;
}
Demo : http://jsbin.com/ufimom/596/edit
I have a highly personalized Kendo stuff. Custom styling is one of the biggest problems of kendo (along with million other issues that you will find once you start using kendo at a big scale). To minimize the size of the stylesheets they have combined a lot of styling of different controls into few files. Although its a good thing but it makes the custom styling (and then updating in the future) a nightmare. Knowing how ":not", ">", ":first", ":first-of-type", etc. work in css will really help you with styling of the grids and other controls.
I usually write separate stylesheets to override kendo styling (by using a lot of !important keyword in my override css). It helps when I update kendo.
Without seeing your html and background image in context, I'm just taking a guess here. Try appending the normal state of the calender icon to your css rule like this,
.k-link:not(.k-state-disabled):hover>.k-i-calendar,.k-state-hover .k-i-calendar,.k-button:hover .k-i-calendar,.k-textbox:hover .k-i-calendar,.k-button:active .k-i-calendar, .k-i-calendar { background-position:-48px -176px; margin-top: -6px; }
DEMO
EDIT: As the previous poster mentioned, !important is likely the best solution here, in order to override the Kendo settings. Example:
.k-i-calendar {
margin-top: 0px !important;
}
DEMO here: http://jsbin.com/ufimom/598/