Jump to content

newcoder1010

Members
  • Posts

    526
  • Joined

  • Last visited

Everything posted by newcoder1010

  1. Yes to match that. font-family in browser console does not show the valentine option. How do I import the font in my css file?
  2. Hello, <h2>OUR VISION</h2> h2{ text-align:center; font-size:55px; letter-spacing:0.06em; font-family: Arial,Helvetica,sans-serif; } How can I make the heading like this one I attached? Its not working for me. https://drive.google.com/file/d/11xwfFoAlU7oIzOLERUSJ48xcnS22alZk/view?usp=sharing Thanks!
  3. <span class="field-timer-jquery-countdown is-countdown" data-field-timer-key="node-7-field_countdowntest2-0-2FME63kDm44" data-timestamp="1606508506"><span class="countdown-row countdown-show3"><span class="countdown-section"><span class="countdown-amount">20</span><span class="countdown-period">Hours</span></span><span class="countdown-section"><span class="countdown-amount">19</span><span class="countdown-period">Minutes</span></span><span class="countdown-section"><span class="countdown-amount">53</span><span class="countdown-period">Seconds</span></span></span></span>
  4. This is my site. Countdown 2 - width and padding are not working for me. .countdown-section {background: #060695;margin:10px; width:100px; padding:10px;} Also, not able to centering the count down: .countdown-row {width:50%;margin: auto;}
  5. Hello, I have a count down in jQuery. However, UI does not look good. Hard to read the numbers. Because jQuery is running, I am unable to inspect it in chrome dev tool to style it. If you could help me with some styling, it would be very helpful. There are some styling being applied by the plugin but unable to inspect the stylings because element is keep changing. How can I style it to overwrite it? https://drive.google.com/file/d/14ylHEPKuG173TZUN1XmjyXfQz7MtsV9I/view?usp=sharing <div class="field-timer-jquery-countdown-led green is-countdown" data-field-timer-key="node-193-field_count_down-0-kHjxuNvghYU" data-timestamp="1606329098"><span class="jquery-countdown-led-display-wrapper"><span class="green image0"></span><span class="green image0"></span><span class="green imageDay"></span><span class="green imageSpace"></span><span class="green image1"></span><span class="green image9"></span><span class="green imageSep"></span><span class="green image1"></span><span class="green image7"></span><span class="green imageSep"></span><span class="green image4"></span><span class="green image6"></span></span></div> Thanks!
  6. Hello, String value1 = " text odt.odt File format of .odt is not valid." System.out.println(value1); I get this: Now how can I store the second line "File format of .odt is not valid." into a different variable(i.e. value2)?
  7. https://docs.google.com/document/d/19mUV6yJ6aVSmEHZm3haZi2I9PrV_BB2-s88RuaiMOfk/edit?usp=sharing
  8. Hello, HTML: <div class="col-md-6 col-lg-6 col-xs-12 col-sm-6"> <div class="field1"> <img src="/sites/default/files/2020-10/plumbing-dc_1.png" width="100%" alt="Your Plumbing" class="img-responsive"></div> <div class="footer"><h2>YOUR COMPANY NAME WHO WE ARE SUMMARY GOES HERE </h2></div> </div> I like to place the footer element on the bottom of the field1 class. Below css works except for the background color. I do not see the bg color. I can see the bg color if I remove the margin-top. .footer { background: red; z-index: 2; margin-top: -80px; width: 70%; margin-left: auto; margin-right: auto; } Please advise!
  9. Hello, https://www.w3schools.com/java/showjava.asp?filename=demo_hashset_add package Hash; import java.util.HashSet; public class HashSet { public static void main(String[] args) { HashSet<String> cars = new HashSet<String>(); cars.add("Volvo"); cars.add("BMW"); cars.add("Ford"); cars.add("BMW"); cars.add("Mazda"); System.out.println(cars); } } Error: "The type HashSet is not generic; it cannot be parameterized with arguments <String>" Please advise!
  10. .portfolio was the parent class of the the field. Now I changed it to the .field img and it worked. Below was helpful. object-fit: cover; Thanks!
  11. I changed image height to 100%. It is bit better. If I keep over flow -x or not, it does not make difference. How can I make the image 300px height without stretching the image? Instead, I like to show part of the image by cropping top and bottom 10%. Perhaps something similar to background image position.
  12. https://drive.google.com/file/d/1KXOhEJYt8SJdX0VY4FrAdMc1_q4RTM5p/view?usp=sharing <div class="field field--name-field-image1 field--type-image field--label-hidden field--item"> <img src="/sites/default/files/2020-09/house-5.png" width="1895" height="837" alt="test" typeof="foaf:Image" class="img-responsive"> </div> .field.field--name-field-image1.field--type-image.field--label-hidden.field--item { height: 300px; overflow-x: hidden; background: red; } .portfolio img { border: 0; height: auto; /* width: 50%; */ float: left; height: auto; } Image is not resizing to 300px. Please see the link.
  13. img{overflow-x: hidden; border: 0; width: 50%; float: left; height: 500px;} It did not make any difference whether I keep overflow-x:hidden; or not.
  14. Hello, <div class="field field--name-field-image field--type-image field--label-hidden field--item"> <img src="/sites/default/files/2020-09/singe-house-5_0.png" width="1895" height="837" alt="uyg" typeof="foaf:Image" class="img-responsive"> </div> HTML has the image url and the original dimension. I cant change that. I like the image to be 500px height and 100% width. However, when I give 500px height, it does not look good proportionally. Height:auto it changes height by itself but I need fixed 500px height. img { border: 0; width: 100%; float: left; height: 500px; } How can I give 500px height to the image so that it looks good proportionally? When I set image as background, I use the below css and it works. I was thinking if I can apply similar css to image it would be very helpful. border-top: 5px solid #032d6a; background-attachment: fixed; background-color: rgba(255,255,255,0); background-position: center center; background-repeat: no-repeat; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-image: url(kar-buy-houses.png); Thanks!
  15. Hello, HTML <section data-quickedit-entity-id="block_content/56" id="block-portfolio1" class="col-md-12 col-lg-12 col-xs-12 col-sm-12 portfolio-one portfolio contextual-region block block-block-content block-block-contentb542f11a-fbd5-4ebe-8669-f57d84c42429 clearfix" data-quickedit-entity-instance-id="0"> <h2 class="block-title">Portfolio 1</h2> <div data-contextual-id="block:block=portfolio1:langcode=en|block_content:block_content=56:changed=1600966868&amp;langcode=en" data-contextual-token="tCd_R3tnlsGqN3Xah99BjMqmcUUXb1goeAqz0iUHUOg" class="contextual"><button class="trigger visually-hidden focusable" type="button" aria-pressed="false">Open Portfolio 1 configuration options</button><ul class="contextual-links links" hidden=""><li class="quickedit"><a href="" role="button" aria-pressed="false">Quick edit</a></li><li class="block-configure"><a href="/admin/structure/block/manage/portfolio1?destination=/portfolios">Configure block</a></li><li class="block-contentblock-edit"><a href="/block/56?destination=/portfolios">Edit</a></li></ul></div> <div data-quickedit-field-id="block_content/56/field_image/en/full" class="field field--name-field-image field--type-image field--label-above quickedit-field"> <div class="field--label">Image</div> <div class="field--item"> <img src="/sites/default/files/2020-09/logo-blue.png" width="381" height="218" alt="kk" typeof="foaf:Image" class="img-responsive"> </div> </div> <div data-quickedit-field-id="block_content/56/field_value/en/full" class="field field--name-field-value field--type-integer field--label-above quickedit-field"> <div class="field--label">Value</div> <div content="7777" class="field--item">$7777</div> </div> <div data-quickedit-field-id="block_content/56/field_units/en/full" class="field field--name-field-units field--type-integer field--label-above quickedit-field"> <div class="field--label">Units</div> <div class="field--item">786786</div> </div> <div data-quickedit-field-id="block_content/56/field_states/en/full" class="field field--name-field-states field--type-list-string field--label-above quickedit-field"> <div class="field--label">States</div> <div class="field--items"> <div class="field--item">Arizona</div> <div class="field--item">Florida</div> <div class="field--item">Iowa</div> <div class="field--item">Vermont</div> </div> </div> </section> .portfolio { display: flex;} I wanted three fields to have the same height so I used display:flex to the parent. Problem is that it applies to all the childs. Instead, I like same height to the following childs only: Value, Units and States. Thank you!
  16. It worked with the first two lines. Last line puts comma at the end so I did not use the last line. Thanks!
  17. Hello, <div data-quickedit-field-id="block_content/56/field_states/en/full" class="field field--name-field-states field--type-list-string field--label-above quickedit-field"> <div class="field--label">States</div> <div class="field--items"> <div class="field--item">Arizona</div> <div class="field--item">Florida</div> <div class="field--item">Iowa</div> <div class="field--item">Vermont</div> </div> </div> Currently they are listed as a list like this: AZ FL How can I style it to display as: AZ, FL Please advise!
  18. Hello, <td headers="view-field-units-table-column" class="views-field views-field-field-units">1234 </td> How can I place comma in this format depending on the number of digits? 1234 > 1,234 12345> 12,345 123456>123,456 Thanks!
  19. Hello, HTML source code: https://www.walmart.com/ip/Parent-s-Choice-Diapers-Size-3-36-Diapers/14912811 If you view html source code, you will see the upc code. "standardusItemId":"401199665","upc":"681131167444","fetched":true, I like to write a program to just print the code(value only). String str = driver.getPageSource(); System.out.println("-----"); System.out.println(str); System.out.println("field" + str.indexOf("upc")); System.out.println("value" + str.indexOf("681131167444")); Result: index1033185 upc603459 I know code is not complete. My code gets the page source just fine. Only extracting the code is not working. Please advise!
  20. Hello, I have a html table with no row class. <table> <tr></tr> data<tr> data</tr></table> How can I delete the last row? Unfortunately, I cant give row class at this point. Thanks!
  21. // here it works just fine. If and else works as expected List textDemo = (List) driver.findElements(By.xpath("//*[contains(text(),'First Name is required8.')]")); if(((java.util.List<String>) textDemo).isEmpty()) { System.out.println("Element using text is not found"); } else System.out.println("Element using text is found"); } // here only else block is being executed every time regardless I have correct value or not. String x = "\'First Name is required wrong value.\'"; // I also tried without the single quotes and escaped \ inside double quotes System.out.println("x " + x); List textDemo = (List) driver.findElements(By.xpath("//*[contains(text(),x)]")); if(((java.util.List<String>) textDemo).isEmpty()) { System.out.println("Element using text is not found"); } else System.out.println("Element using text is found"); } This is selenium java webdriver/java related issues. I have problem only when I store the string in a variable. I am not sure how to fix it.
  22. Hello, //works List textDemo = (List) driver.findElements(By.xpath("//*[contains(text(),'First Name is required.')]")); //does not work String name = "\'First Name is required.\'"; List textDemo = (List) driver.findElements(By.xpath("//*[contains(text(),name)]")); First code has this 'First Name is required.' with single code inside double quotes. Second code has a variable name which stores 'First Name is required.'. It is not working. How can I have name variable with single quotes 'First Name is required.'?
  23. I need to do some study. I can have title without the word minus. Luckily I can modify the title. After that, I will have a:before to include minus as content so that I can style the word minus. This will do the trick. However, I cant modify the title for other blocks. For that, I need to do some study to see how to style the first few letters or the first word. Thanks!
×
×
  • Create New...