I have been making a wordpress template. i got stuck at some place...
the problem is,
how to maintain the size of a div = the size of p tags and img tags...
i have seen that the div only able to contain the p tag but the img tag over flows...
i have my code in this following order:
<div>
<p> some contents <img src="an_image"/> some morecontent</p>
<div>
what i basically want is:
div height = <p> height U(union) <img> height
but, what actually i am getting is:
div height = <p> height; while <img> over flows
i have already checked for similar questions on Stack Overflow but was not able to find one which solves a similar problem..
please give me some idea..
I have something like this:
<ul>
<li>
<div>
<div style="display:inline">
<a><span class="ui-icon ui-icon-circle-plus floatleft "></span></a>
</div>
<input type="checkbox"> <label>good</label>
</div>
</li>
</ul>
the bullet goes above the span on IE8, I would like to make it stay before the span just like in Mozilla, anybody knows how ?
I've read through other questions but to no avail - I really can't work this out.
The site is http://bit.ly/cqEO53 (hoping to not have any search links to this page so shortening URL).
The gradient on the footer looks great in non IE browsers, but fails to show in IE 7,8 and the dev preview.
Any ideas?
Consider the following jsfiddle for reference:
http://jsfiddle.net/apmmw2ma/
As you can see, the “inner” box (with the red border) is positioned relative to the outer’s padding-box: left:0 positions it just to the right of outer’s border, and top:100% appears to mean “100% of the content plus padding, but not the border”.
Unfortunately, adding box-sizing: border-box to the outer div seems to have no effect.
I want to position a child element directly below its parent’s border-box, i.e. the two borders should abut no matter how thick they are. Is this possible?
I have this script and it sends out an alert message. All I want is to put the alert message in a div inside the form. here is the script can you please help asap
`
var registered=false
function ExamineRegistration()
{
var email =document.regform.email.value;
var emailcheck= email.indexOf("@")
var emailcheck2= email.indexOf(".")
var password = document.regform.pass.value;
var passcheck = password.charAt(0)
var message_out = "Errors: "
if(email=="" || password==""){
message_out = message_out+"All boxes should be filled in, "
}
if(emailcheck==-1 || emailcheck2==-1)
{
message_out = message_out+"email must contain @ and ., "
}
if(password!=password)
{
message_out=message_out+"password must match"
}
if(message_out == "Errors: ") {
message_out = "You have successfully been logged in!"
registered=true
}
alert(message_out);
}
--> This function helps the user first to register and than to enter the site.
function Checkreg() {
if (registered ==true) {
location.replace("http://www.google.com")
}
else alert("Please Login to proceed")
}
</script>
`
I have a form. I just want the alert message to appear inside the form at the top. I just dont know how to display the alert message inside the form instead of a pop up.
I have an li navigation with dividers created using the code shown below. I'd like to have two of these | elements but different colours, is it possible to define different colours for both?
#navigation li:before {
content: "|";
color: #800836;
}
I'd like another but with #F2659A and right next to the existing.
Here is the live url to see how things look right now:
http://www.jordancharters.co.uk/nakedradish/
My textarea is behaving very strange, when I click inside it .. the cursor appears there when I click, if I click on the middle of the textarea it appears there, and I'd like it to appear on the beginning wherever I click inside, like here on SO when asking question, wherever you click inside textarea it takes your cursor to the topmost left. What can I do to fix this?
I know this question had been asked many times.
http://stackoverflow.com/questions/1740587/float-a-div-to-center
However, I follow their suggestion :
<center>
<div style="margin : auto">
<a href="#" style="float: left; margin-right: 10px;">Menu Item 1</a>
<a href="#" style="float: left; margin-right: 10px;">Menu Item 2</a>
<a href="#" style="float: left; margin-right: 10px;">Menu Item 3</a>
</div>
</center>
By using "Center" and "Margin Auto", I still unable to center the menu item.
like
img { background-color:color: color matched to the theme}
or
img { background-image:url (a very very tiny gif image with the text "image loading") }
I'm thinking in the benefit of this when user access site on slow connection then background color will give clue about something is there which is diffrent than text content..
If in content is too small in pages then it look odd . to show some space to make looks good which method would be better.
min-height to #main-content or sticky footer, which is preferred idea?
I was wondering if there was any way to, using jQuery, animate properties of text-shadow like size or colour.
It's annoying that there aren't individual properties like text-shadow-color instead of the statement only being available in combined form.
Hi
I'm working on a website that's already been designed by someone else. The designer has used a big image (900x700 100KB) which contains a big logo right across the top, then the background for two columns.
This image loads every time a page is loaded as it forms the basis for the website. What should I do with it to improve loading time?
I'm considering splitting it up into two or more images, especially the logo on the top. Does splitting up images like that decrease loading time in any significant way?
Thanks
-edit: Also, all the images are .jpg, would changing this to .gif or .png help anything?
I managed to remove the background when the user clicks on the field but I cannot restore it when it blurs!
This is the field:
<textarea class="question-box" style="width: 240px; background:
white url('http://chusmix.com/Imagenes/contawidget.png') no-repeat
50% 50%; color: grey;" cols="12" rows="5" id="question-box-' .
$questionformid . '" name="title" onblur="if(this.value == '') {
this.style.color='#848484'; this.value=''this.style.background='
white url('http://chusmix.com/Imagenes/contawidget.png') no-repeat 50% 50%;e';}"
onfocus="if (this.value == '') {this.style.color='#444';
this.style.background='none';}" type="text" maxlength="200" size="28"></textarea>
Anyone knows what I'm doing wrong?? Thanks
Hey all,
I'm working on an application where the page layout is essentially a bunch of absolutely positioned containers. There is a header, sidebar and content area. The content area has its own header and footer which are fixed on the screen. The main part of the content area scrolls but nothing else does.
So, we are using jQuery dialog for popup boxes and in IE7 with this new layout when i open a dialog the rest of my content in the background vanishes. I'm left with the page header and the footer of the content area and that's it.
In Firefox and believe it or not IE6 it works fine.
We are using ie7.js in ie6 though to make things not suck.
Anyone have any clue why opening a dialog in jquery would screw up absolute positioning and make stuff vanish?
I'd like to have the width of my table 100% of screen width - so flexible to different screen sizes.
is it possible to have my columns automatically resize proportionately?
I've tried give the td's percentage widths but this doesnt seem to work, firebug shows that the tbody isnt filling the tables width?
<table class="">
<tr class="headings">
<td class="entry">
</td>
<td class="calendar">Availability Calendar
</td>
<td class="deals">Last Minute Deals
</td>
<td class="ann">Announcements
</td>
<td class="banners">Banners
</td>
</tr>
</table>
I am using the YUI Rich Editor (SimpleEditor) which gives an editor that has a heading that says "Text Editing Tools" and a +/- button that shows/hides the editing tools. I don't need this, how can I hide them or disable these features?
Thanks!
Was styling the checkboxes of my webpage with jquery using the tutorial here
But i realized that I could not do SelectAll checkbox that will select all the checkboxes in my list. It works in the backend (the checkboxes are selected) but it does not show in my page.
Added a demo to show my problem. May need to port to your system to test it out
Demo
what can I add to the jQuery Custom Radio-buttons and Checkbox javascript file in the to achieve the select all checkbox function
Thank you!
As question really. I have an input box on my page that I would like to ignore when navigating using the keyboard tab key.
I'm using this input box as a simple bot honeytrap and positioning it off the page, so at the moment when using the tab key, it looks to the user as though nothing has focus when they tab to this element.