Style to picture item in repeater - css

Is it possible to change size and width for this image when I display it?
As it stored as picture and I can't change it to hyperlink and use the img tag.
<div class="col-md-8" style="padding: 0px;">
<%# ((SPListItem)Container.DataItem)["Rollup Image"] %>
</div>

Related

Jquery mobile filterable list inline with image/button with auto sized width

Im trying to bring a filterable list with a input field inline with a image but without good results.
The html looks like this:
<div style="display: inline;">
<ul id="city" data-inline="true" data-theme="a" data-role="listview" data-filter="true" data-filter-reveal="true" data-filter-placeholder=" " data-inset="true">
</ul>
</div>
<div style="float:right; display: inline;">
<img height="35px" src="" onclick="getLocation()" >
</div>
The list is filled by ajax.
I want to get as result that the listview is inline with the button and the button is on the right side. Also the listview fills all possible space in this line. I tried it with a grid solution but than I have to calculate the width of every user manually but I'm sure there is a better way to do this.

adding a text between two divs html

i have a html page in which i am showing two images ... i want to add the text between the images.. at the moment the images are displaying like this
i want to do something like this
how can i add a text or small image of VS here in the middle.
here is my code in jsfiddle
http://jsfiddle.net/Gd5Bg/
i am writing a small bit of code here because stack is not giving me the permission to add a jsfiddle link without the code here
<div class="image-galery">
<a class="group" rel="group1" href="img/4_b.jpg">
<img src="img/4_b.jpg" />
</a>
</div>
<div class="span5 galery" style="float:left">
.......
</div>
<div style="float:left;position:relative;top:150px;left:5px;">vs</div>
<div class="span5 galery" style="float:left">
.......
</div>
Put your elements in a table. Then use
<td style="vertical-align:middle"> ... </td>
To center everything vertically.

EDIT html file in vb.net

I've created a html page which consists of a div section in the body tag.
How do I change the contents of inner divs based on an event in another in vb.net winform(eg: when a button is pressed)?
<div id="magazine">
<div style="background-image:url(pages/01.jpg);"></div>
<div style="background-image:url(pages/02.jpg);"></div>
<div style="background-image:url(pages/03.jpg);"></div>
<div style="background-image:url(pages/04.jpg);"></div>
<div style="background-image:url(pages/05.jpg);"></div>
<div style="background-image:url(pages/06.jpg);"></div>
<div style="background-image:url(pages/07.jpg);"></div>
<div style="background-image:url(pages/08.jpg);"></div>
</div>
Give each of the DIVs an ID and runat="server" attribute. You should then be able to reference each one from server side code.

How do I display ASP.NET ImageButton on a ASP.Image Control

I am using ASP.NET 2.0.
I have Image and ImageButton Side by Side by like this.
<div style="width:80px">
<asp:Image ID="innerImgDesk1" runat="server" ImageUrl="~/images/advlefttop.png" Width ="60px"/>
<asp:ImageButton ID="ImgDeskIndicator1" runat="server" Width="20px" ImageUrl="~/images/Indicators/blue.png"/>
</div>
I want the ASP.NET Imagebutton on top of Image. I should see image button kind of indicator, where Imagebutton color will be changing. But Image color remains same.
Currently using the above code, it displays like below.
I want it to be displayed like below,
Could anyone tell me What I should do to display ImageButton on Image.
Thank you
Try setting the image as background image of the div tag like the following code:
<div style="width:80px; background: url(images/advlefttop.png)">
<asp:ImageButton ID="ImgDeskIndicator1" runat="server" Width="20px" ImageUrl="~/images/Indicators/blue.png"/>
</div>
Hope this helps!
Corix
if you are just worried about displaying button over image-button than you can do this by using div absolute position like
<div style="position:relative">
<div style="position:absolute">image button</div>
<div style="position:absolute> button</div>
</div>

asp.net server.execute

I am using server.execute to call a another form my code Looks like this
<div>
<% server.execute("default2.aspx") %>
</div>
My problem is the size of the default2.aspx is greater so when i apply height to the div the default2.aspx is overlapping the other content in the default page
Is not setting the height an option? Typically if the height is not set it's default is "auto"
You could also use:
div
{
height:500px;
overflow: auto;
}
If the content is too big for the area, a scrollbar will appear.
Using your code:
<div style="height:500px;overflow: auto;">
<% server.execute("default2.aspx") %>
</div>

Resources